I am using a function to create a list from a float.
float_to_list(0.02).
It returns:
\"2.00000000000000000000e-002\"
mochinum:digits converts a float to a string with an appropriate level of precision.
mochinum:digits
1> mochinum:digits(1.1). "1.1" 2> mochinum:digits(1.2345). "1.2345"
Not exactly what the OP requested, but useful nonetheless.