Comment #6 on issue 165 by jussi.la...@gmail.com: 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


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to