[Gambas-user] Issue 165 in gambas: Arithmetic problem with float

gambas at ...2524... gambas at ...2524...
Fri Dec 23 19:10:36 CET 2011


Comment #6 on issue 165 by jussi.la... at ...626...: Arithmetic problem with  
float
http://code.google.com/p/gambas/issues/detail?id=165

That is kind of expected result,
since with doubles (float in Gambas) the actual value is (5.025 - 5):
0.0250000000000003552713678800500929355621337890625000
And Gambas rounds it to:
0.0250000000000004

See this for further details:
http://en.wikipedia.org/wiki/Floating_point





More information about the User mailing list