Cldr.Digits.number_of_leading_zeros

You're seeing just the function number_of_leading_zeros, go back to Cldr.Digits module for more information.
Link to this function

number_of_leading_zeros(number)

View Source

Specs

number_of_leading_zeros(Cldr.Math.number_or_decimal() | [integer(), ...]) ::
  integer()

Returns the number of leading zeros in a Decimal fraction.

  • number is an integer, float or Decimal

Returns the number of leading zeros in the fractional part of a number.

Examples

iex> Cldr.Digits.number_of_leading_zeros(Decimal.new("0.0001"))
3