Page 1 of 1

inaccurate division

Posted: Fri Jun 08, 2007 8:20 pm
by PBasic

Code: Select all

a.f = 1.00 / 2.00
PrintN(Str(a))
It results in 0, not 0.5
How can I make it calculate correctly?
Thanks!

Posted: Fri Jun 08, 2007 8:21 pm
by Kale

Code: Select all

a.f = 1.00 / 2.00
Debug StrF(a)