Strange math behaviour... could someone explain this ?

jbv jbv.silences at Club-Internet.fr
Fri Oct 7 10:02:07 EDT 2005


According to my tests (which aren't exhaustive)
there seems to be another workaround :

  put 36 into A
  put 34.2 into B
  put A-B into C

  put C*100 into C
  put trunc(C)

this gives 180 as a result, while the following line
(replacing the last 2 of the above example) gives 179

  put trunc(C*100) into C

JB




More information about the use-livecode mailing list