Windows apps
Collapse the table of content
Expand the table of content

Double Structure

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents a double-precision floating-point number.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

[SerializableAttribute]
public struct Double

The Double type exposes the following members.

  NameDescription
Public methodStatic memberCompareTo
Public methodEqualsIndicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberIsInfinityReturns a value indicating whether the specified number evaluates to negative or positive infinity
Public methodStatic memberIsNaNReturns a value that indicates whether the specified value is not a number (NaN).
Public methodStatic memberIsNegativeInfinityReturns a value indicating whether the specified number evaluates to negative infinity.
Public methodStatic memberIsPositiveInfinityReturns a value indicating whether the specified number evaluates to positive infinity.
Public methodStatic memberParseConverts the string representation of a number to its double-precision floating-point number equivalent.
Public methodToString()()()()Converts the numeric value of this instance to its equivalent string representation. (Overrides Object..::..ToString()()()().)
Public methodToString(String)Converts the numeric value of this instance to its equivalent string representation, using the specified format.
Public methodStatic memberTryParseConverts the string representation of a number to its double-precision floating-point number equivalent. A return value indicates whether the conversion succeeded or failed.
Top

  NameDescription
Public fieldStatic memberEpsilonRepresents the smallest positive Double value that is greater than zero. This field is constant.
Public fieldStatic memberMaxValueRepresents the largest possible value of a Double. This field is constant.
Public fieldStatic memberMinValueRepresents the smallest possible value of a Double. This field is constant.
Public fieldStatic memberNaNRepresents a value that is not a number (NaN). This field is constant.
Public fieldStatic memberNegativeInfinityRepresents negative infinity. This field is constant.
Public fieldStatic memberPositiveInfinityRepresents positive infinity. This field is constant.
Top

The Double value type represents a double-precision 64-bit number with values ranging from negative 1.79769313486232e308 to positive 1.79769313486232e308, as well as positive or negative zero, PositiveInfinity, NegativeInfinity, and Not-a-Number (NaN).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2017 Microsoft