Cldr.Number.precision

You're seeing just the function precision, go back to Cldr.Number module for more information.

Return the precision (number of digits) of a number

This function delegates to Cldr.Digits.number_of_digits/1

Example

iex> Cldr.Number.precision 1.234
4