Click or drag to resize
Double Structure
Represents a double-precision floating-point number.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public struct Double : IComparable, IFormattable, 
	IConvertible, IComparable<double>, IEquatable<double>

The Double type exposes the following members.

Methods
  NameDescription
Public methodCompareTo(Double)
Compares this instance to a specified double-precision floating-point number and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified double-precision floating-point number.
Public methodCompareTo(Object)
Compares this instance to a specified object and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object.
Public methodEquals(Double)
Returns a value indicating whether this instance and a specified Double object represent the same value.
Public methodEquals(Object)
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsNaN
Returns a value indicating whether the specified number evaluates to a value that is not a number (NaN).
Public methodStatic memberParse(String)
Converts the string representation of a number to its double-precision floating-point number equivalent.
Public methodStatic memberParse(String, NumberStyles)
Converts the string representation of a number in a specified style to its double-precision floating-point number equivalent.
Public methodStatic memberParse(String, IFormatProvider)
Converts the string representation of a number in a specified culture-specific format to its double-precision floating-point number equivalent.
Public methodStatic memberParse(String, NumberStyles, IFormatProvider)
Converts the string representation of a number in a specified style and culture-specific format to its double-precision floating-point number equivalent.
Public methodToString
Converts the numeric value of this instance to its equivalent string representation.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
Public methodToString(String)
Converts the numeric value of this instance to its equivalent string representation, using the specified format.
Public methodToString(String, IFormatProvider)
Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.
Public methodStatic memberTryParse(String, Double)
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.
Public methodStatic memberTryParse(String, NumberStyles, IFormatProvider, Double)
Converts the string representation of a number in a specified style and culture-specific format to its double-precision floating-point number equivalent. A return value indicates whether the conversion succeeded or failed.
Top
Fields
  NameDescription
Public fieldStatic memberEpsilon
Represents the smallest positive Double value that is greater than zero. This field is constant.
Public fieldStatic memberMaxValue
Represents the largest possible value of a Double. This field is constant.
Public fieldStatic memberMinValue
Represents the smallest possible value of a Double. This field is constant.
Public fieldStatic memberNaN
Represents a value that is not a number (NaN). This field is constant.
Public fieldStatic memberNegativeInfinity
Represents negative infinity. This field is constant.
Public fieldStatic memberPositiveInfinity
Represents positive infinity. This field is constant.
Top
See Also