Cldr.Math.coef_exponent
You're seeing just the function
coef_exponent
, go back to Cldr.Math module for more information.
Specs
coef_exponent(number_or_decimal()) :: {number_or_decimal(), integer()}
Returns a tuple representing a number in a normalized form with
the mantissa in the range 0 < m < 10
and a base 10 exponent.
number
is an integer, float or Decimal
Examples
Cldr.Math.coef_exponent(Decimal.new(1.23004))
{#Decimal<1.23004>, 0}
Cldr.Math.coef_exponent(Decimal.new(465))
{#Decimal<4.65>, 2}
Cldr.Math.coef_exponent(Decimal.new(-46.543))
{#Decimal<-4.6543>, 1}