Troubles with inequality

Jim Lambert jiml at netrin.com
Thu Feb 5 12:35:42 EST 2015


> Graham wrote:
> 
>  I wanted to test if two numbers were equal, knowing that they probably weren’t exactly equal to the last decimal place but nevertheless were 'engineering equal' as it were - say to six places of decimals. 

Perhaps performing a statround() on the numbers prior to checking equality might help.

Jim Lambert





More information about the use-livecode mailing list