Float.to_charlist

You're seeing just the function to_charlist, go back to Float module for more information.

Specs

to_charlist(float()) :: charlist()

Returns a charlist which corresponds to the text representation of the given float.

It uses the shortest representation according to algorithm described in "Printing Floating-Point Numbers Quickly and Accurately" in Proceedings of the SIGPLAN '96 Conference on Programming Language Design and Implementation.

Examples

iex> Float.to_charlist(7.0)
'7.0'