[Gambas-user] Calculation Bug?

R. Stormo rohnny at ...1248...
Mon Nov 27 21:52:22 CET 2006


I'm doing a small calculation for a CDI box to a 4 wheel bike. And when I
putting the function togheter it does not calculate the right values
according to the calculator.

>From Debug.
Dim fTmp1 as Float
fTmp1 =  618 * 2 * 60 * 1000000 / (618 * 2) / 360 =2574.51449119022


The calculator gives the value

166666,666666667

Spreadsheet gives
166666,666666667

So there must be something wrong in gambas when calculation is done.

Because if I take one zero from the 1000000 it gives me a total different
value
Dim fTmp1 as Float
fTmp1 =  618 * 2 * 60 * 100000 / (618 * 2) / 360 =-2638.29241280115

Should have been 16666,6666666667



Regards R. Stormo

  My Gambas Community  http://gambasforum.tk


-- 
View this message in context: http://www.nabble.com/Calculation-Bug--tf2714348.html#a7567782
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list