Formating floating point/double for display

BlitzMax Forums/BlitzMax Programming/Formating floating point/double for display

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

OK.
GA original code for 0.05 gave :
0.0500000007
.1
5.5
50.50
and for 50.00 or 50 gave :
50.0000000
50.0
50.00
49.950

Dreamora's corrected code for 0.05 gave :
0.0500000007
0.1
0.05
0.050
which seems ok but for 50.00 or 50 gave :
50.0000000
50.0
50.00
49.950

GA latest test for 0.05 gave :
0.0500000007
0.1
0.05
0.050
which, again, seems OK but 50.00 gave :
50.0000000
50.0
50.00
49.950

I could have it wrong but 49.950 seems incorrect.