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 | |
---|---|---|
CompareTo | ||
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsInfinity | Returns a value indicating whether the specified number evaluates to negative or positive infinity | |
IsNaN | Returns a value that indicates whether the specified value is not a number (NaN). | |
IsNegativeInfinity | Returns a value indicating whether the specified number evaluates to negative infinity. | |
IsPositiveInfinity | Returns a value indicating whether the specified number evaluates to positive infinity. | |
Parse | Converts the string representation of a number to its double-precision floating-point number equivalent. | |
ToString() () () () | Converts the numeric value of this instance to its equivalent string representation. (Overrides Object. . :: . .ToString() () () ().) | |
ToString(String) | Converts the numeric value of this instance to its equivalent string representation, using the specified format. | |
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 | |
---|---|---|
Epsilon | Represents the smallest positive Double value that is greater than zero. This field is constant. | |
MaxValue | Represents the largest possible value of a Double. This field is constant. | |
MinValue | Represents the smallest possible value of a Double. This field is constant. | |
NaN | Represents a value that is not a number (NaN). This field is constant. | |
NegativeInfinity | Represents negative infinity. This field is constant. | |
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.