Pages: 1
Because decimal numbers can not be represented exactly in Scratch (or many other computer languages for that matter), any exact comparison of decimal numbers can be problematic. Sometimes it works and sometimes it doesn't. It's a lot safer to work with integers - you could scale all the numbers up by 1000 and then use the Round function to turn them into integers.
Offline
oh, thanks, i didn't try using rounding...
so now i have a way to store 2 different numbers and a letter in only ONE variable/string (means my (no more) secret compiler will come out sooner
)
Last edited by roijac (2011-09-16 13:14:42)
Offline
Pages: 1