Double Summary The wrapper class for the double primitive type. Description The System.Double class represents an IEEE-754 double-precision floating-point value. The System.Double class is the wrapper class for the double primitive type. The range for double values is [ -1.79769313486232e308, 1.79769313486232e308 ] (inclusive). Examples Instantiation 123import System; System.Double x = new System.Double(100); Auto-boxing 123import System; System.Double x = 100d; Primitives Only 12double x = 1.1d;double y = 2D; Methods compareCompares the Double object to another Double object. Double (Constructor)Constructs a System.Double object. fromStringConverts a string to a double value. fromStringOrConverts a string to its equivalent double value or the provided default value if the conversion fails. fromStringOrThrowConverts a string to a valid double value or throws an exception if the value cannot be converted. isEvenChecks if the number is an even number. isFiniteChecks if the value is finite. isNaNChecks if the value is NaN (Not a Number). isOddChecks if the number is an odd number. MAX_VALUERepresents the maximum value for the double type. MIN_VALUERepresents the minimum value for the double type. NaNRepresents the NaN (Not a Number) value. NEGATIVE_INFINITYRepresents negative infinity (-∞). POSITIVE_INFINITYRepresents positive infinity (+∞). toExponentialFormats the double value using exponential notation. toExternalConverts the IEEE-754 double-precision floating-point value to its equivalent external value. toFixedFormats the double value using fixed-point notation. toPrecisionFormats the double value as a string to the given precision. toStringConverts the double value to an equivalent string value. valueOfReturns the primitive double value wrapped by the System.Double object. Share HTML | BBCode | Direct Link