ken (ken v0.1.1) View Source

ken allows you to get the shortest round-trip representation of a binary encoding an IEEE 754 floating point number.

Ken use the Ryu algorithm from Ulf Adams in order to get a fast and precise output. It has been modified to keep the erlang/OTP representation of floating point numbers as string.

Link to this section Summary

Functions

Take the binary of a 64 bits IEEE 754 floating point number and return an Iodata representing the shortest round trip decimal string representation of it by the erlang rules for such.

Link to this section Functions

Link to this function

binary_to_iodata(Binary)

View Source
Take the binary of a 64 bits IEEE 754 floating point number and return an Iodata representing the shortest round trip decimal string representation of it by the erlang rules for such.