if ( 20425 * .053 ) == 1082.525 then print ("equal") else print ("not equal") end Welcome to the floating-point world: 0.053 dos not have an exact representation. This has nothing to do with Lua. See http://lua-users.org/wiki/FloatingPoint http://docs.python.org/tut/node16.html --lhf
if ( 20425 * .053 ) == 1082.525 then print ("equal") else print ("not equal") end
Welcome to the floating-point world: 0.053 dos not have an exact representation. This has nothing to do with Lua. See http://lua-users.org/wiki/FloatingPoint http://docs.python.org/tut/node16.html --lhf
-- Tom Reahard Symmetry Software 14350 N. 87th Street, #170 Scottsdale, AZ 85260 Ph: 480-596-1500 x120 Web: www.symmetry.com