How do I get a floating point number as a string without the exponent notation, that is, a number that ends in "e-10" or similar? I discovered to_s returns the number with the exponent notation.
ms = 1457000.0000000002 % 1000 # => 2.3283064365386963e-10
ms.to_s # => "2.3283064365386963e-10"
I would like to get "0.0000000002", but I don't get it right.
If I use my example above and evaluate "%f" % ms, I get "0.000000", which is much different from "0.0000000002".