07-26-2024, 05:27 PM
(This post was last modified: 07-26-2024, 05:29 PM by TerryRitchie.)
(07-26-2024, 03:02 PM)Petr Wrote: I use these methods (versus the ones listed here):Thanks for the tips. I didn't even think to investigate MOD.
If Value MOD 1 = 0 -> INTEGER
If Value \ 1 = Value -> INTEGER
maybe it's the same in the background, just written differently. I didn't do this using a string conversion because those conversions are slow.
(07-26-2024, 05:25 PM)Jack Wrote: PetrMy guess is that it's slower given that division is at play. I'm going to incorporate it into my code and see the result.
I like If Value MOD 1 = 0 -> INTEGER but it remains to be tested whether it's faster or slower than using INT
integer division is rather slow especially when dealing with 64-bit integers