Running the below code using windows nimrod 0.9.2 gives the following output:
1.230000000000000
1000000000.123000
1.2300000000000000e+000
1.0009999999999999e+002
I would have preffered 1.23 , 1.123e+9 , 1.23 and 100.1 respectively. (That output will happen with formatFloat, ffDefault, precision 0)
Format float, precision 0 is not documented for FormatFloat, and broken in the documentation for FormatBiggestFloat. Is this a 'secret' feature, or should i file a bug report on this?
#-------code start----------
import strutils
echo(FormatFloat(1.23))
echo(FormatFloat(1000000000.123))
echo 1.23
echo 100.1
#-------code end----------