Math issue, isn't it?

Randy Hengst iowahengst at mac.com
Fri May 8 17:06:50 EDT 2009


If it helps your current issue, using numberFormat as previously  
mentioned and round will give you the false you're expecting....

set the numberFormat to 0.##
put round(283.67-150.00-133.67)>0

However, I've wondered about this myself.... at what point does the  
error show itself? because using

put 10-10>0 in the message box yields false.

put 100-90.3- 9.7>0   yields true

put 100-90.33- 9.67>0   yields false



take care,
randy
-----
On May 8, 2009, at 2:00 PM, Giovanni Cannizzaro wrote:

> hi all!!!
> I've a little math issue!!!
> Try to put this in ur message box:
>
> put 283.67-150.00-133.67>0
>
> It's surely false ('cause 283.67-150.00-133.67 it' equal to 0)
> but Revolution says me it's TRUE!
> Can u confirm this?
> What's the matter? Why this strange behavior?
>
> TY. bye-
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list