isodd: Tests whether a given given value n is odd.

Description Usage Arguments Value References Examples

Description

An odd number is an integer that has the form n = 2k + 1 for an integer k. In other words, an odd number is an integer that is not evenly divisible by 2.

Usage

1
isodd(n)

Arguments

n

Value to test

Value

TRUE if n is odd, FALSE otherwise

References

Weisstein, Eric W. "Odd Number." From MathWorld–A Wolfram Web Resource. http://mathworld.wolfram.com/OddNumber.html

Examples

1
2
3
isodd(3)
isodd(4)
isodd(3.2)

aschleg/numberr documentation built on May 14, 2019, 10:31 a.m.