DarkMatter v1.0.0 DarkMatter.Decimals.Conversion View Source
Decimal conversion functions
Link to this section Summary
Functions
Cast Decimal
Cast Decimal
Cast Decimal ok
Compare Decimal
Determines if two decimals are equivalent.
((n + (factor/2)) / factor) * factor
Generic to integer function
Transform a t:stringable.t/0
into a normalized exponent string.
Link to this section Types
Specs
Link to this section Functions
Cast Decimal
Cast Decimal
Cast Decimal ok
Compare Decimal
Determines if two decimals are equivalent.
((n + (factor/2)) / factor) * factor
Generic to integer function
Specs
to_string(stringable()) :: nil | String.t()
Transform a t:stringable.t/0
into a normalized exponent string.
Raises ArgumentError
if a given binary isn't a valid Decimal
.