about float calculate setprecision problem
ggg558877
Posts: 40
Hi everyone
I have some problem about float calculate setprecision
I want to calculate (10*60+12.3456)*100000 the answer must be 61,234,560
but in propeller
how can i do to make answer is 61,234,560
thanks
I have some problem about float calculate setprecision
I want to calculate (10*60+12.3456)*100000 the answer must be 61,234,560
but in propeller
aa :=math.FMul(math.FAdd(math.FMul(10.0,60.0),12.3456),100000.0)it show 61,235,000
how can i do to make answer is 61,234,560
thanks
Comments
I want to calculate (100*60+12.3456)*100000 the answer must be 601,234,560 it show 601234600
I got it
John Abshier