numbers v5.2.0 Numbers.Protocols.ToFloat protocol
For supporting Numbers.to_float/1
.
Link to this section Summary
Functions
Convert the custom Numeric struct to the built-in float datatype.
Link to this section Types
Link to this type
t()
t()
t() :: term()
t() :: term()
Link to this section Functions
Link to this function
to_float(num)
Convert the custom Numeric struct to the built-in float datatype.
It is okay to lose precision during this conversion.