double
Object Hierarchy:
Description:
[ SimpleType ]
public struct double
Content:
Constants:
Static methods:
Methods:
- public bool is_nan ()
Determines if the double is not-a-number (NaN).
- public bool is_finite ()
Determines if the given double has finite value i.e. it is normal, subnormal
or zero, but not infinite or NAN.
- public bool is_normal ()
Determines if the given double is normal, i.e. is neither zero, subnormal,
infinite, nor NaN.
- public int is_infinity ()
Determines if the given double is a negative or positive infinity
- public double clamp (double low, double high)
- public unowned string to_str (char[] buffer)
Converts a double to a string, using the '.
- public unowned string format (char[] buffer, string format = "%g")
Converts a double to a string, using the '.
- public string to_string ()
Converts the value to its equivalent string representation
Fields:
- public static int MANT_DIG
Number of base FLT_RADIX digits that can be represented without
losing precision
- public static int DIG
Number of decimal digits that can be represented without losing precision
- public static int MIN_EXP
Minimum negative integer such that FLT_RADIX raised by power
one less than that integer is a normalized double
- public static int MAX_EXP
Maximum positive integer such that FLT_RADIX raised by power
one more than that integer is a normalized double
- public static int MIN_10_EXP
Minimum negative integer such that 10 raised by power one less than that
integer is a normalized double
- public static int MAX_10_EXP
Maximum positive integer such that 10 raised by power one more than that
integer is a normalized double
- public static double EPSILON
Difference between 1.0 and the next representable value for double
- public static double MIN
Minimum value of double
- public static double MAX
Maximum value of double
- public static double NAN
Indicates that the value is not-a-number (NaN)
- public static double INFINITY
Indicates that the value is not representable by the underlying type
(positive or negative infinity)