Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

While the EVEN 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
// 2 is even 
Result = SRP_Math("EVEN", "2.0") 
!! Result = 1 !! 
 

...

Code Block
// 3 is not even 
Result = SRP_Math("EVEN", "3.0") 
!! Result = 0 !! 
 

...

Code Block
// 0 is even 
Result = SRP_Math("EVEN", 0) 
!! Result = 1 !!

...