Water 5-Common Data Types-Number
class number.integer
class for representing machine-dependent integer numerical values
Contract
No input parameters.
Water Contract
<class number.integer
/>

See also: is_type_for, is_a, number, double

Subclasses: odd, positive, even, negative, nonnegative

Methods: degrees_to_radians, tanh, sqrt, random, sin, asin, to_regex, cos, acos, atan, tan, atan2, sinh, radians_to_degrees, cosh, from, to_hex_string, log, to_xmlrpc



The integer class is the _parent type for numerical values represented as long integer values in the range -2147483648 through 2147483647 .

To use integers in Water, simply type a sequence of decimal digits that represent a numerical value within the range allowed.

Example: Integers
0.<is_a integer />true
2500.<is_a integer />true
-123.4567.<is_a integer />false

a wob
Parameter keyDefault valueType
max_value2147483647integer

This field returns the machine-defined maximum value an object of this type can represent.

integer.max_value2147483647

a wob
Parameter keyDefault valueType
min_value-2147483648integer

This field returns the machine-defined minimum value an object of this type can represent.

integer.min_value-2147483648