Strange math behaviour... could someone explain this ?
jbv
jbv.silences at Club-Internet.fr
Fri Oct 7 07:16:41 EDT 2005
Hi list,
example 1 :
put 1.8 into myA
put trunc(myA * 100) into myA
in that case, myA=180 which is OK
------------------
example 2 :
put 34.2 into myA
put 36 into myT
if myA > 0 then
if myA < myT then
get myA
put myT - myA into myA
put it into myT
else
put 0 into myA
end if
end if
put trunc(myA * 100) into myA
in that case, myA=179 ?????????????????????
Best,
JB
More information about the use-livecode
mailing list