# double

## Object Hierarchy:

## Description:

[ SimpleType ]

public struct

public struct

**double****Package:**glib-2.0

## Content:

### Constants:

- public const int
**MANT_DIG**Number of base RADIX digits that can be represented without losing precision - public const int
**DIG**Number of decimal digits that can be represented without losing precision - public const int
**MIN_EXP**Minimum negative integer such that RADIX raised by power one less than that integer is a normalized double - public const int
**MAX_EXP**Maximum positive integer such that RADIX raised by power one more than that integer is a normalized double - public const int
**MIN_10_EXP**Minimum negative integer such that 10 raised by power one less than that integer is a normalized double - public const int
**MAX_10_EXP**Maximum positive integer such that 10 raised by power one more than that integer is a normalized double - public const double
**EPSILON**Difference between 1.0 and the next representable value for double - public const double
**MIN**Minimum value of double - public const double
**MAX**Maximum value of double - public const double
**NAN**Indicates that the value is not-a-number (NaN) - public const double
**INFINITY**Indicates that the value is not representable by the underlying type (positive or negative infinity) - public const int
**DTOSTR_BUF_SIZE**A good size for a buffer to be passed into to_str.

### Static methods:

- public static double
**min**(double a, double b) - public static double
**max**(double a, double b) - public static double
**parse**(string str)Converts a string to a double value. - public static bool
**try_parse**(string str, out double result = null, out string unparsed = null)Converts a string to a double value.

### 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 double
**abs**() - 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