numberformat, trunc and round
curry at pair.com
Tue Feb 2 12:01:58 EST 2021
> if myvar = trunc(myvar) then
Different approach: I prefer "mod" for loop breakouts/pitstops.
Very clean way to determine action for certain loop iterations!
Useful for fractional values too, in LC versions thus far.
> set numberformat to "#.0000000"
You can easily set the numberformat twice, if necessary, in the loop.
And/or take control over whether your comparison is text or binary.
(The numberformat gets involved when converting binary to text.)
Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
More information about the use-livecode