Water 5-Common Data Types-Number
class number.double
class 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 keyDefault valueType
pi3.141592653589793double

Double-precision floating point representation of "pi", the ratio of the circumference of a circle to its diameter.

number.double.pi3.141592653589793

a wob
Parameter keyDefault valueType
e2.718281828459045double

Double-precision floating point representation of "e", the base of the natural system of logarithms.

number.double.e2.718281828459045

a wob
Parameter keyDefault valueType
infinityInfinitydouble

A special field for representing "infinity".

7.0.<divide 0.0 />number.double.infinity

a wob
Parameter keyDefault valueType
negative_infinity-Infinitydouble

A special field for representing "negative infinity".

-7.0.<divide 0.0 />
number.double.negative_infinity 

a wob
Parameter keyDefault valueType
is_nanis_nanmethod


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 keyDefault valueType
min_value4.9E-324double


This field returns the minimum value that can be represented by an object of this type.

a wob
Parameter keyDefault valueType
max_value1.7976931348623157E308double


This field returns the maximum value that can be represented by an object of this type.

a wob
Parameter keyDefault valueType
default_value0.0double


This field returns the current value of this field. The programmer may change this with the set method.