class and type number.nonnegative
class for testing whether a numerical value is non-negative
Contract
No input parameters.
Water Contract
<class number.nonnegative
/>

See also: is_type_for, is_a, positive, negative, nonzero

Methods: is_type_for



This class can be used in conjunction with is_type_for to determine whether a given argument is zero or greater.

Examples

number.nonnegative.<is_type_for 453 />
true
number.nonnegative.<is_type_for 0.0 />
true
number.nonnegative.<is_type_for 0 />
true
number.nonnegative.<is_type_for 0.000001 />
true
number.nonnegative.<is_type_for -0.000001 />
false