mscorlib(4.0.0.0) API with additions
System.Double Struct Reference

Represents a double-precision floating-point number. More...

Inheritance diagram for System.Double:
[legend]
Collaboration diagram for System.Double:
[legend]

Public Member Functions

int CompareTo (object value)
 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. More...
 
int CompareTo (double value)
 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. More...
 
override bool Equals (object obj)
 Returns a value indicating whether this instance is equal to a specified object. More...
 
bool Equals (double obj)
 Returns a value indicating whether this instance and a specified T:System.Double object represent the same value. More...
 
unsafe override int GetHashCode ()
 Returns the hash code for this instance. More...
 
override string ToString ()
 Converts the numeric value of this instance to its equivalent string representation. More...
 
string ToString (string format)
 Converts the numeric value of this instance to its equivalent string representation, using the specified format. More...
 
string ToString (IFormatProvider provider)
 Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information. More...
 
string ToString (string format, IFormatProvider provider)
 Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information. More...
 
TypeCode GetTypeCode ()
 Returns the T:System.TypeCode for value type T:System.Double. More...
 
bool IConvertible. ToBoolean (IFormatProvider provider)
 For a description of this member, see M:System.IConvertible.ToBoolean(System.IFormatProvider). More...
 
char IConvertible. ToChar (IFormatProvider provider)
 This conversion is not supported. Attempting to use this method throws an T:System.InvalidCastException. More...
 
sbyte IConvertible. ToSByte (IFormatProvider provider)
 For a description of this member, see M:System.IConvertible.ToSByte(System.IFormatProvider). More...
 
byte IConvertible. ToByte (IFormatProvider provider)
 For a description of this member, see M:System.IConvertible.ToByte(System.IFormatProvider). More...
 
short IConvertible. ToInt16 (IFormatProvider provider)
 For a description of this member, see M:System.IConvertible.ToInt16(System.IFormatProvider). More...
 
ushort IConvertible. ToUInt16 (IFormatProvider provider)
 For a description of this member, see M:System.IConvertible.ToUInt16(System.IFormatProvider). More...
 
int IConvertible. ToInt32 (IFormatProvider provider)
 For a description of this member, see M:System.IConvertible.ToInt32(System.IFormatProvider). More...
 
uint IConvertible. ToUInt32 (IFormatProvider provider)
 For a description of this member, see M:System.IConvertible.ToUInt32(System.IFormatProvider). More...
 
long IConvertible. ToInt64 (IFormatProvider provider)
 For a description of this member, see M:System.IConvertible.ToInt64(System.IFormatProvider). More...
 
ulong IConvertible. ToUInt64 (IFormatProvider provider)
 For a description of this member, see M:System.IConvertible.ToUInt64(System.IFormatProvider). More...
 
float IConvertible. ToSingle (IFormatProvider provider)
 For a description of this member, see M:System.IConvertible.ToSingle(System.IFormatProvider). More...
 
double IConvertible. ToDouble (IFormatProvider provider)
 For a description of this member, see M:System.IConvertible.ToDouble(System.IFormatProvider). More...
 
decimal IConvertible. ToDecimal (IFormatProvider provider)
 For a description of this member, see M:System.IConvertible.ToDecimal(System.IFormatProvider). More...
 
DateTime IConvertible. ToDateTime (IFormatProvider provider)
 This conversion is not supported. Attempting to use this method throws an T:System.InvalidCastException More...
 
object IConvertible. ToType (Type type, IFormatProvider provider)
 For a description of this member, see M:System.IConvertible.ToType(System.Type,System.IFormatProvider). More...
 
- Public Member Functions inherited from System.IEquatable< double >
bool Equals (T other)
 Indicates whether the current object is equal to another object of the same type. More...
 

Static Public Member Functions

static unsafe bool IsInfinity (double d)
 Returns a value indicating whether the specified number evaluates to negative or positive infinity More...
 
static bool IsPositiveInfinity (double d)
 Returns a value indicating whether the specified number evaluates to positive infinity. More...
 
static bool IsNegativeInfinity (double d)
 Returns a value indicating whether the specified number evaluates to negative infinity. More...
 
internal static unsafe bool IsNegative (double d)
 
static unsafe bool IsNaN (double d)
 Returns a value that indicates whether the specified value is not a number (F:System.Double.NaN). More...
 
static bool operator== (double left, double right)
 Returns a value that indicates whether two specified T:System.Double values are equal. More...
 
static bool operator != (double left, double right)
 Returns a value that indicates whether two specified T:System.Double values are not equal. More...
 
static bool operator< (double left, double right)
 Returns a value that indicates whether a specified T:System.Double value is less than another specified T:System.Double value. More...
 
static bool operator > (double left, double right)
 Returns a value that indicates whether a specified T:System.Double value is greater than another specified T:System.Double value. More...
 
static bool operator<= (double left, double right)
 Returns a value that indicates whether a specified T:System.Double value is less than or equal to another specified T:System.Double value. More...
 
static bool operator >= (double left, double right)
 Returns a value that indicates whether a specified T:System.Double value is greater than or equal to another specified T:System.Double value. More...
 
static double Parse (string s)
 Converts the string representation of a number to its double-precision floating-point number equivalent. More...
 
static double Parse (string s, NumberStyles style)
 Converts the string representation of a number in a specified style to its double-precision floating-point number equivalent. More...
 
static double Parse (string s, IFormatProvider provider)
 Converts the string representation of a number in a specified culture-specific format to its double-precision floating-point number equivalent. More...
 
static double Parse (string s, NumberStyles style, IFormatProvider provider)
 Converts the string representation of a number in a specified style and culture-specific format to its double-precision floating-point number equivalent. More...
 
static bool TryParse (string s, out double result)
 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. More...
 
static bool TryParse (string s, NumberStyles style, IFormatProvider provider, out double result)
 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. More...
 

Public Attributes

internal double m_value
 
const double MinValue = -1.7976931348623157E+308
 Represents the smallest possible value of a T:System.Double. This field is constant. More...
 
const double MaxValue = 1.7976931348623157E+308
 Represents the largest possible value of a T:System.Double. This field is constant. More...
 
const double Epsilon = 4.94065645841247E-324
 Represents the smallest positive T:System.Double value that is greater than zero. This field is constant. More...
 
const double NegativeInfinity = -1.0 / 0.0
 Represents negative infinity. This field is constant. More...
 
const double PositiveInfinity = 1.0 / 0.0
 Represents positive infinity. This field is constant. More...
 
const double NaN = 0.0 / 0.0
 Represents a value that is not a number (NaN). This field is constant. More...
 

Static Public Attributes

static internal double NegativeZero = BitConverter.Int64BitsToDouble(long.MinValue)
 

Detailed Description

Represents a double-precision floating-point number.

Definition at line 13 of file Double.cs.

Member Function Documentation

◆ CompareTo() [1/2]

int System.Double.CompareTo ( object  value)

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.

Parameters
valueAn object to compare, or null.
Returns
A signed number indicating the relative values of this instance and value .Value Description A negative integer This instance is less than value .-or- This instance is not a number (F:System.Double.NaN) and value is a number. Zero This instance is equal to value .-or- This instance and value are both Double.NaN, F:System.Double.PositiveInfinity, or F:System.Double.NegativeInfinityA positive integer This instance is greater than value .-or- This instance is a number and value is not a number (F:System.Double.NaN).-or- value is null.
Exceptions
T:System.ArgumentExceptionvalue is not a T:System.Double.

Definition at line 110 of file Double.cs.

◆ CompareTo() [2/2]

int System.Double.CompareTo ( double  value)

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.

Parameters
valueA double-precision floating-point number to compare.
Returns
A signed number indicating the relative values of this instance and value .Return Value Description Less than zero This instance is less than value .-or- This instance is not a number (F:System.Double.NaN) and value is a number. Zero This instance is equal to value .-or- Both this instance and value are not a number (F:System.Double.NaN), F:System.Double.PositiveInfinity, or F:System.Double.NegativeInfinity. Greater than zero This instance is greater than value .-or- This instance is a number and value is not a number (F:System.Double.NaN).

Definition at line 148 of file Double.cs.

◆ Equals() [1/2]

override bool System.Double.Equals ( object  obj)

Returns a value indicating whether this instance is equal to a specified object.

Parameters
objAn object to compare with this instance.
Returns
true if obj is an instance of T:System.Double and equals the value of this instance; otherwise, false.

Definition at line 178 of file Double.cs.

◆ Equals() [2/2]

bool System.Double.Equals ( double  obj)

Returns a value indicating whether this instance and a specified T:System.Double object represent the same value.

Parameters
objA T:System.Double object to compare to this instance.
Returns
true if obj is equal to this instance; otherwise, false.

Definition at line 273 of file Double.cs.

◆ GetHashCode()

unsafe override int System.Double.GetHashCode ( )

Returns the hash code for this instance.

Returns
A 32-bit signed integer hash code.

Definition at line 290 of file Double.cs.

◆ GetTypeCode()

TypeCode System.Double.GetTypeCode ( )

Returns the T:System.TypeCode for value type T:System.Double.

Returns
The enumerated constant, F:System.TypeCode.Double.

Implements System.IConvertible.

Definition at line 480 of file Double.cs.

◆ IsInfinity()

static unsafe bool System.Double.IsInfinity ( double  d)
static

Returns a value indicating whether the specified number evaluates to negative or positive infinity

Parameters
dA double-precision floating-point number.
Returns
true if d evaluates to F:System.Double.PositiveInfinity or F:System.Double.NegativeInfinity; otherwise, false.

Definition at line 50 of file Double.cs.

◆ IsNaN()

static unsafe bool System.Double.IsNaN ( double  d)
static

Returns a value that indicates whether the specified value is not a number (F:System.Double.NaN).

Parameters
dA double-precision floating-point number.
Returns
true if d evaluates to F:System.Double.NaN; otherwise, false.

Definition at line 99 of file Double.cs.

◆ IsNegativeInfinity()

static bool System.Double.IsNegativeInfinity ( double  d)
static

Returns a value indicating whether the specified number evaluates to negative infinity.

Parameters
dA double-precision floating-point number.
Returns
true if d evaluates to F:System.Double.NegativeInfinity; otherwise, false.

Definition at line 76 of file Double.cs.

◆ IsPositiveInfinity()

static bool System.Double.IsPositiveInfinity ( double  d)
static

Returns a value indicating whether the specified number evaluates to positive infinity.

Parameters
dA double-precision floating-point number.
Returns
true if d evaluates to F:System.Double.PositiveInfinity; otherwise, false.

Definition at line 61 of file Double.cs.

◆ operator !=()

static bool System.Double.operator != ( double  left,
double  right 
)
static

Returns a value that indicates whether two specified T:System.Double values are not equal.

Parameters
leftThe first value to compare.
rightThe second value to compare.
Returns
true if left and right are not equal; otherwise, false.

Definition at line 215 of file Double.cs.

◆ operator >()

static bool System.Double.operator > ( double  left,
double  right 
)
static

Returns a value that indicates whether a specified T:System.Double value is greater than another specified T:System.Double value.

Parameters
leftThe first value to compare.
rightThe second value to compare.
Returns
true if left is greater than right ; otherwise, false.

Definition at line 239 of file Double.cs.

◆ operator >=()

static bool System.Double.operator >= ( double  left,
double  right 
)
static

Returns a value that indicates whether a specified T:System.Double value is greater than or equal to another specified T:System.Double value.

Parameters
leftThe first value to compare.
rightThe second value to compare.
Returns
true if left is greater than or equal to right ; otherwise, false.

Definition at line 263 of file Double.cs.

◆ operator<()

static bool System.Double.operator< ( double  left,
double  right 
)
static

Returns a value that indicates whether a specified T:System.Double value is less than another specified T:System.Double value.

Parameters
leftThe first value to compare.
rightThe second value to compare.
Returns
true if left is less than right ; otherwise, false.

Definition at line 227 of file Double.cs.

◆ operator<=()

static bool System.Double.operator<= ( double  left,
double  right 
)
static

Returns a value that indicates whether a specified T:System.Double value is less than or equal to another specified T:System.Double value.

Parameters
leftThe first value to compare.
rightThe second value to compare.
Returns
true if left is less than or equal to right ; otherwise, false.

Definition at line 251 of file Double.cs.

◆ operator==()

static bool System.Double.operator== ( double  left,
double  right 
)
static

Returns a value that indicates whether two specified T:System.Double values are equal.

Parameters
leftThe first value to compare.
rightThe second value to compare.
Returns
true if left and right are equal; otherwise, false.

Definition at line 203 of file Double.cs.

◆ Parse() [1/4]

static double System.Double.Parse ( string  s)
static

Converts the string representation of a number to its double-precision floating-point number equivalent.

Parameters
sA string that contains a number to convert.
Returns
A double-precision floating-point number that is equivalent to the numeric value or symbol specified in s .
Exceptions
T:System.ArgumentNullExceptions is null.
T:System.FormatExceptions does not represent a number in a valid format.
T:System.OverflowExceptions represents a number that is less than F:System.Double.MinValue or greater than F:System.Double.MaxValue.

Definition at line 353 of file Double.cs.

◆ Parse() [2/4]

static double System.Double.Parse ( string  s,
NumberStyles  style 
)
static

Converts the string representation of a number in a specified style to its double-precision floating-point number equivalent.

Parameters
sA string that contains a number to convert.
styleA bitwise combination of enumeration values that indicate the style elements that can be present in s . A typical value to specify is a combination of F:System.Globalization.NumberStyles.Float combined with F:System.Globalization.NumberStyles.AllowThousands.
Returns
A double-precision floating-point number that is equivalent to the numeric value or symbol specified in s .
Exceptions
T:System.ArgumentNullExceptions is null.
T:System.FormatExceptions does not represent a number in a valid format.
T:System.OverflowExceptions represents a number that is less than F:System.Double.MinValue or greater than F:System.Double.MaxValue.
T:System.ArgumentExceptionstyle is not a T:System.Globalization.NumberStyles value. -or- style includes the F:System.Globalization.NumberStyles.AllowHexSpecifier value.

Definition at line 372 of file Double.cs.

◆ Parse() [3/4]

static double System.Double.Parse ( string  s,
IFormatProvider  provider 
)
static

Converts the string representation of a number in a specified culture-specific format to its double-precision floating-point number equivalent.

Parameters
sA string that contains a number to convert.
providerAn object that supplies culture-specific formatting information about s .
Returns
A double-precision floating-point number that is equivalent to the numeric value or symbol specified in s .
Exceptions
T:System.ArgumentNullExceptions is null.
T:System.FormatExceptions does not represent a number in a valid format.
T:System.OverflowExceptions represents a number that is less than F:System.Double.MinValue or greater than F:System.Double.MaxValue.

Definition at line 389 of file Double.cs.

◆ Parse() [4/4]

static double System.Double.Parse ( string  s,
NumberStyles  style,
IFormatProvider  provider 
)
static

Converts the string representation of a number in a specified style and culture-specific format to its double-precision floating-point number equivalent.

Parameters
sA string that contains a number to convert.
styleA bitwise combination of enumeration values that indicate the style elements that can be present in s . A typical value to specify is F:System.Globalization.NumberStyles.Float combined with F:System.Globalization.NumberStyles.AllowThousands.
providerAn object that supplies culture-specific formatting information about s .
Returns
A double-precision floating-point number that is equivalent to the numeric value or symbol specified in s .
Exceptions
T:System.ArgumentNullExceptions is null.
T:System.FormatExceptions does not represent a numeric value.
T:System.ArgumentExceptionstyle is not a T:System.Globalization.NumberStyles value. -or- style is the F:System.Globalization.NumberStyles.AllowHexSpecifier value.
T:System.OverflowExceptions represents a number that is less than F:System.Double.MinValue or greater than F:System.Double.MaxValue.

Definition at line 409 of file Double.cs.

◆ ToBoolean()

bool IConvertible. System.Double.ToBoolean ( IFormatProvider  provider)

For a description of this member, see M:System.IConvertible.ToBoolean(System.IFormatProvider).

Parameters
providerThis parameter is ignored.
Returns
true if the value of the current instance is not zero; otherwise, false.

Implements System.IConvertible.

Definition at line 490 of file Double.cs.

◆ ToByte()

byte IConvertible. System.Double.ToByte ( IFormatProvider  provider)

For a description of this member, see M:System.IConvertible.ToByte(System.IFormatProvider).

Parameters
providerThis parameter is ignored.
Returns
The value of the current instance, converted to a T:System.Byte.

Implements System.IConvertible.

Definition at line 518 of file Double.cs.

◆ ToChar()

char IConvertible. System.Double.ToChar ( IFormatProvider  provider)

This conversion is not supported. Attempting to use this method throws an T:System.InvalidCastException.

Parameters
providerThis parameter is ignored.
Returns
This conversion is not supported. No value is returned.
Exceptions
T:System.InvalidCastExceptionIn all cases.

Implements System.IConvertible.

Definition at line 500 of file Double.cs.

◆ ToDateTime()

DateTime IConvertible. System.Double.ToDateTime ( IFormatProvider  provider)

This conversion is not supported. Attempting to use this method throws an T:System.InvalidCastException

Parameters
providerThis parameter is ignored.
Returns
This conversion is not supported. No value is returned.
Exceptions
T:System.InvalidCastExceptionIn all cases.

Implements System.IConvertible.

Definition at line 609 of file Double.cs.

◆ ToDecimal()

decimal IConvertible. System.Double.ToDecimal ( IFormatProvider  provider)

For a description of this member, see M:System.IConvertible.ToDecimal(System.IFormatProvider).

Parameters
providerThis parameter is ignored.
Returns
The value of the current instance, converted to a T:System.Decimal.

Implements System.IConvertible.

Definition at line 599 of file Double.cs.

◆ ToDouble()

double IConvertible. System.Double.ToDouble ( IFormatProvider  provider)

For a description of this member, see M:System.IConvertible.ToDouble(System.IFormatProvider).

Parameters
providerThis parameter is ignored.
Returns
The value of the current instance, unchanged.

Implements System.IConvertible.

Definition at line 590 of file Double.cs.

◆ ToInt16()

short IConvertible. System.Double.ToInt16 ( IFormatProvider  provider)

For a description of this member, see M:System.IConvertible.ToInt16(System.IFormatProvider).

Parameters
providerThis parameter is ignored.
Returns
The value of the current instance, converted to an T:System.Int16.

Implements System.IConvertible.

Definition at line 527 of file Double.cs.

◆ ToInt32()

int IConvertible. System.Double.ToInt32 ( IFormatProvider  provider)

For a description of this member, see M:System.IConvertible.ToInt32(System.IFormatProvider).

Parameters
providerThis parameter is ignored.
Returns
The value of the current instance, converted to an T:System.Int32.

Implements System.IConvertible.

Definition at line 545 of file Double.cs.

◆ ToInt64()

long IConvertible. System.Double.ToInt64 ( IFormatProvider  provider)

For a description of this member, see M:System.IConvertible.ToInt64(System.IFormatProvider).

Parameters
providerThis parameter is ignored.
Returns
The value of the current instance, converted to an T:System.Int64.

Implements System.IConvertible.

Definition at line 563 of file Double.cs.

◆ ToSByte()

sbyte IConvertible. System.Double.ToSByte ( IFormatProvider  provider)

For a description of this member, see M:System.IConvertible.ToSByte(System.IFormatProvider).

Parameters
providerThis parameter is ignored.
Returns
The value of the current instance, converted to an T:System.SByte.

Implements System.IConvertible.

Definition at line 509 of file Double.cs.

◆ ToSingle()

float IConvertible. System.Double.ToSingle ( IFormatProvider  provider)

For a description of this member, see M:System.IConvertible.ToSingle(System.IFormatProvider).

Parameters
providerThis parameter is ignored.
Returns
The value of the current instance, converted to a T:System.Single.

Implements System.IConvertible.

Definition at line 581 of file Double.cs.

◆ ToString() [1/4]

override string System.Double.ToString ( )

Converts the numeric value of this instance to its equivalent string representation.

Returns
The string representation of the value of this instance.

Definition at line 305 of file Double.cs.

◆ ToString() [2/4]

string System.Double.ToString ( string  format)

Converts the numeric value of this instance to its equivalent string representation, using the specified format.

Parameters
formatA numeric format string.
Returns
The string representation of the value of this instance as specified by format .
Exceptions
T:System.FormatExceptionformat is invalid.

Definition at line 317 of file Double.cs.

◆ ToString() [3/4]

string System.Double.ToString ( IFormatProvider  provider)

Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.

Parameters
providerAn object that supplies culture-specific formatting information.
Returns
The string representation of the value of this instance as specified by provider .

Implements System.IConvertible.

Definition at line 327 of file Double.cs.

◆ ToString() [4/4]

string System.Double.ToString ( string  format,
IFormatProvider  provider 
)

Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.

Parameters
formatA numeric format string.
providerAn object that supplies culture-specific formatting information.
Returns
The string representation of the value of this instance as specified by format and provider .

Implements System.IFormattable.

Definition at line 338 of file Double.cs.

◆ ToType()

object IConvertible. System.Double.ToType ( Type  type,
IFormatProvider  provider 
)

For a description of this member, see M:System.IConvertible.ToType(System.Type,System.IFormatProvider).

Parameters
typeThe type to which to convert this T:System.Double value.
providerAn T:System.IFormatProvider implementation that supplies culture-specific information about the format of the returned value.
Returns
The value of the current instance, converted to type .

Implements System.IConvertible.

Definition at line 619 of file Double.cs.

◆ ToUInt16()

ushort IConvertible. System.Double.ToUInt16 ( IFormatProvider  provider)

For a description of this member, see M:System.IConvertible.ToUInt16(System.IFormatProvider).

Parameters
providerThis parameter is ignored.
Returns
The value of the current instance, converted to a T:System.UInt16.

Implements System.IConvertible.

Definition at line 536 of file Double.cs.

◆ ToUInt32()

uint IConvertible. System.Double.ToUInt32 ( IFormatProvider  provider)

For a description of this member, see M:System.IConvertible.ToUInt32(System.IFormatProvider).

Parameters
providerThis parameter is ignored.
Returns
The value of the current instance, converted to a T:System.UInt32.

Implements System.IConvertible.

Definition at line 554 of file Double.cs.

◆ ToUInt64()

ulong IConvertible. System.Double.ToUInt64 ( IFormatProvider  provider)

For a description of this member, see M:System.IConvertible.ToUInt64(System.IFormatProvider).

Parameters
providerThis parameter is ignored.
Returns
The value of the current instance, converted to a T:System.UInt64.

Implements System.IConvertible.

Definition at line 572 of file Double.cs.

◆ TryParse() [1/2]

static bool System.Double.TryParse ( string  s,
out double  result 
)
static

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.

Parameters
sA string containing a number to convert.
resultWhen this method returns, contains the double-precision floating-point number equivalent of the s parameter, if the conversion succeeded, or zero if the conversion failed. The conversion fails if the s parameter is null or F:System.String.Empty, is not a number in a valid format, or represents a number less than F:System.Double.MinValue or greater than F:System.Double.MaxValue. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.
Returns
true if s was converted successfully; otherwise, false.

Definition at line 426 of file Double.cs.

◆ TryParse() [2/2]

static bool System.Double.TryParse ( string  s,
NumberStyles  style,
IFormatProvider  provider,
out double  result 
)
static

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.

Parameters
sA string containing a number to convert.
styleA bitwise combination of T:System.Globalization.NumberStyles values that indicates the permitted format of s . A typical value to specify is F:System.Globalization.NumberStyles.Float combined with F:System.Globalization.NumberStyles.AllowThousands.
providerAn T:System.IFormatProvider that supplies culture-specific formatting information about s .
resultWhen this method returns, contains a double-precision floating-point number equivalent of the numeric value or symbol contained in s , if the conversion succeeded, or zero if the conversion failed. The conversion fails if the s parameter is null or F:System.String.Empty, is not in a format compliant with style , represents a number less than F:System.SByte.MinValue or greater than F:System.SByte.MaxValue, or if style is not a valid combination of T:System.Globalization.NumberStyles enumerated constants. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.
Returns
true if s was converted successfully; otherwise, false.
Exceptions
T:System.ArgumentExceptionstyle is not a T:System.Globalization.NumberStyles value. -or- style includes the F:System.Globalization.NumberStyles.AllowHexSpecifier value.

Definition at line 442 of file Double.cs.

Member Data Documentation

◆ Epsilon

const double System.Double.Epsilon = 4.94065645841247E-324

Represents the smallest positive T:System.Double value that is greater than zero. This field is constant.

Definition at line 27 of file Double.cs.

◆ MaxValue

const double System.Double.MaxValue = 1.7976931348623157E+308

Represents the largest possible value of a T:System.Double. This field is constant.

Definition at line 23 of file Double.cs.

◆ MinValue

const double System.Double.MinValue = -1.7976931348623157E+308

Represents the smallest possible value of a T:System.Double. This field is constant.

Definition at line 19 of file Double.cs.

◆ NaN

const double System.Double.NaN = 0.0 / 0.0

Represents a value that is not a number (NaN). This field is constant.

Definition at line 39 of file Double.cs.

◆ NegativeInfinity

const double System.Double.NegativeInfinity = -1.0 / 0.0

Represents negative infinity. This field is constant.

Definition at line 31 of file Double.cs.

◆ PositiveInfinity

const double System.Double.PositiveInfinity = 1.0 / 0.0

Represents positive infinity. This field is constant.

Definition at line 35 of file Double.cs.


The documentation for this struct was generated from the following file: