Skip to content

Cldr version 1.3.0

Compare
Choose a tag to compare
@kipcole9 kipcole9 released this 14 Jan 00:01

Enhancements

  • Add Cldr.Digits.number_of_digits/1 that returns the number of digits (precision) of a float, integer or Decimal. The primary intent is to support better detection of precision errors after parsing a float string. A double precision 64-bit float (which is what Erlang/Elixir use) can safely support 15 digits. According to Wikipedia a decimal floating point number should round-trip convert to string representation and back for 16 digits without rounding (and 17 using "round to even").