Share via


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)

Syntax

'Declaration
<SerializableAttribute> _
Public Structure Double
[SerializableAttribute]
public struct Double
[SerializableAttribute]
public value class Double
[<Sealed>]
[<SerializableAttribute>]
type Double =  struct end
JScript supports the use of structures, but not the declaration of new ones.

The Double type exposes the following members.

Methods

  Name Description
Public methodStatic member CompareTo
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member IsInfinity Returns a value indicating whether the specified number evaluates to negative or positive infinity
Public methodStatic member IsNaN Returns a value that indicates whether the specified value is not a number (NaN).
Public methodStatic member IsNegativeInfinity Returns a value indicating whether the specified number evaluates to negative infinity.
Public methodStatic member IsPositiveInfinity Returns a value indicating whether the specified number evaluates to positive infinity.
Public methodStatic member Parse Converts the string representation of a number to its double-precision floating-point number equivalent.
Public method ToString() () () () Converts the numeric value of this instance to its equivalent string representation. (Overrides Object. . :: . .ToString() () () ().)
Public method ToString(String) Converts the numeric value of this instance to its equivalent string representation, using the specified format.
Public methodStatic member TryParse Converts 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

Fields

  Name Description
Public fieldStatic member Epsilon Represents the smallest positive Double value that is greater than zero. This field is constant.
Public fieldStatic member MaxValue Represents the largest possible value of a Double. This field is constant.
Public fieldStatic member MinValue Represents the smallest possible value of a Double. This field is constant.
Public fieldStatic member NaN Represents a value that is not a number (NaN). This field is constant.
Public fieldStatic member NegativeInfinity Represents negative infinity. This field is constant.
Public fieldStatic member PositiveInfinity Represents positive infinity. This field is constant.

Top

Remarks

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).

Thread Safety

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

See Also

Reference

System Namespace