Re: numberformat, trunc and round

2021-02-02 Thread Curry Kenworthy via use-livecode
jbv: > 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 "#.000" You can easily set the

numberformat, trunc and round

2021-02-02 Thread jbv via use-livecode
Hi list, This might sound like a dumb question, but I'm scratching my head trying to find a workaround. I have this portion of script : set numberformat to "#.000" if myvar = trunc(myvar) then get myarray[myvar] end if The problem seems to be that when numberformat is set, both