Symbian's STDLIB float formatting currently causes a
lot of differences between PyS60 and the official
Python 2.2.
Examples:
- The formatting character %g isn't affected by
precision settings, so "%.3g" % 1.2345 equals to
"1.2345" although it should equal to "1.23" (three
significant numbers). Also, "%g" % 1000000 equals to
"1000000" although it should equal to "1e+006".
- Formatting large numbers using %f formats them
according to locale (e.g. "%f" % 10000 == "10,000.000000"
- eval('090000000000000.0000000000000000000000') gives
90000000000000.1, but expected 90000000000000.0
In the future the floating point formatting could use
an external library instead of the STDLIB ones. There
are probably open and free implementation that could be
adapted for this project with moderate ease.
Logged In: YES
user_id=1162622
Originator: YES
Pending a better formatting subsystem to be integrated in the future.