class and type number.integer.odd
class for testing whether an integer value is not evenly divisible by 2
Contract
No input parameters.
Water Contract
<class number.integer.odd
/>

See also: is_type_for, is_a, even

Methods: is_type_for



This class can be used in conjunction with is_type_for to determine whether a given argument is not evenly divisible by 2.

Examples

integer.odd.<is_type_for 128 />
false
integer.odd.<is_type_for 127 />
true
integer.odd.<is_type_for 0 />false
Example: testing integer.odd on a number.double
integer.odd.<is_type_for 127.0 />
false