ODD()

ODD(V)

RETURNS 1 IF V IS ODD, 0 OTHERWISE

  • Type: Function
  • Parameter: 1
  • Group: Mathematics

ACTION

The function ODD(V) returns 1 if V is odd, 0 otherwise.

V is an integer.

SYNTAX: Result=ODD(V)

  • V = integer value.

USE

  • The function ODD() is used to know if a number is odd.

ERROR

  • If V is not integer.
  • If V is not a correct expression.

EXAMPLE

print odd(3)

print "Result = 1"

SEE ALSO

EVEN()