I am using a function to create a list from a float.
float_to_list(0.02).
It returns:
\"2.00000000000000000000e-002\"
Are you looking for something like this:
6> F = 5/2. 2.50000 7> io_lib:format("~.1f",[F]). ["2.5"] 8> io_lib:format("~.2f",[F]). ["2.50"] 9> io_lib:format("~.3f",[F]). ["2.500"]
if yes, have a look at the module io_lib.