Troubles with inequality

Colin Holgate coiin at
Wed Feb 4 10:14:50 EST 2015

The numberformat only affect the appearance of the number, not its value. If you want to compare them based on the appearance characters, you can compare them as strings instead of numbers. Try this:

on mouseUp
   put 1.234567 into temp
   put 1.2345678 into aa
   set the numberFormat to "0.###"
   put temp * 1 into temp
   put aa * 1 into aa
   answer aa = temp
   answer word 1 of aa = word 1 of temp
   answer word 1 of aa
end mouseUp

More information about the use-livecode mailing list