How to know if a number is even or odd in verse?

In ver there is no modulus operator (%). So how do you know if a number is odd or odd?

3 Likes

IsOdd(X:int)<decides><transacts>:void = (Mod[X, 2] <> 0)

6 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.