Water 5-Common Data Types-Numberclass for representing machine-dependent double-precision numerical values
Contract| No input parameters. | | Water Contract<class number.double
/> | |
See also: is_type_for, is_a, number, integer
Subclasses: zero_to_one
Methods: is_nan, degrees_to_radians, tanh, sqrt, random, sin, asin, cos, acos, atan, tan, atan2, sinh, radians_to_degrees, cosh, from, log, to_xmlrpc
The number.double class is the _parent type for numerical values
represented as double-precision floating-point numbers in the range
4.9E-324 through 1.7976931348623157E308 .
Example: floating-point values are number.double values
-123.45678.<is_a number.double />
 | true |
a wob
| Parameter key | Default value | Type |
| pi | 3.141592653589793 | double |
Double-precision floating point representation of "pi", the ratio of the
circumference of a circle to its diameter.
number.double.pi
3.141592653589793 a wob
| Parameter key | Default value | Type |
| e | 2.718281828459045 | double |
Double-precision floating point representation of "e", the base of the
natural system of logarithms.
number.double.e
2.718281828459045 a wob
| Parameter key | Default value | Type |
| infinity | Infinity | double |
A special field for representing "infinity".
7.0.<divide 0.0 />
number.double.infinity a wob
| Parameter key | Default value | Type |
| negative_infinity | -Infinity | double |
A special field for representing "negative infinity".
-7.0.<divide 0.0 />
 | number.double.negative_infinity |
a wob
The is_nan is a method for testing whether a floating-point
result is considered to be not a number.
-1.0.<sqrt />.<is_nan />
true a wob
| Parameter key | Default value | Type |
| min_value | 4.9E-324 | double |
This field returns the minimum value that can be represented by an
object of this type.
a wob
| Parameter key | Default value | Type |
| max_value | 1.7976931348623157E308 | double |
This field returns the maximum value that can be represented by an
object of this type.
a wob
| Parameter key | Default value | Type |
| default_value | 0.0 | double |
This field returns the current value of this field.
The programmer may change this with the set method.
© Copyright 2007 Clear Methods, Inc.