Page History
...
While the ODD operation produces no errors, the result of passing a non-integer value are considered undefined. Technically, the last digit is used to determine even or odd, so passing a decimal number will determine the even/odd state of the last decimal number. In mathematics, however, even and odd are usually applied to a whole number.
Example
Code Block |
---|
// 3 is odd Result = SRP_Math("ODD", "3.0") !! Result = 1 !! |
...
Code Block |
---|
// 4 is not odd Result = SRP_Math("ODD", "4.0") !! Result = 0 !! |
...
Code Block |
---|
// 0 is not odd Result = SRP_Math("ODD", 0) !! Result = 0 !! |
...