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


to_tuple(Decimal.t() | number()) :: {list(), list(), integer()}

Converts given number to a list representation.

Given an IEEE 754 float, computes the shortest, correctly rounded list of digits that converts back to the same Double value when read back with String.to_float/1. Implements the algorithm from "Printing Floating-Point Numbers Quickly and Accurately" in Proceedings of the SIGPLAN '96 Conference on Programming Language Design and Implementation.

Returns a tuple comprising a charlist for the integer part, a charlist for the fractional part and an integer for the sign.