REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: odd?

odd?  number

Returns TRUE if the number is odd.

Arguments:

number [number! char! date! money! time! pair!]

See also:

even?  

Description

Returns TRUE only if the argument is an odd integer value. If the argument is a decimal, only its integer portion is examined.

print odd? 3
true
print odd? 100
false
print odd? 0
false


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin