struct double

in global :: System

Represents a double-precision floating-point number.


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

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

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

  • value An object to compare, or .
  • Returns A signed number indicating the relative values of this instance and . Value Description A negative integer This instance is less than . -or- This instance is not a number () and is a number. Zero This instance is equal to . -or- This instance and are both , , or A positive integer This instance is greater than . -or- This instance is a number and is not a number (). -or- is .

public static double Epsilon

Represents the smallest positive value that is greater than zero. This field is constant.

public bool Equals( double obj )

Returns a value indicating whether this instance and a specified object represent the same value.

  • obj A object to compare to this instance.
  • Returns if is equal to this instance; otherwise, .

public bool Equals( object obj )

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

  • obj An object to compare with this instance.
  • Returns if is an instance of and equals the value of this instance; otherwise, .

public static bool IsFinite( double d )

Determines whether the specified value is finite (zero, subnormal, or normal).

  • d A double-precision floating-point number.
  • Returns if the value is finite (zero, subnormal or normal); otherwise.

public static bool IsInfinity( double d )

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

  • d A double-precision floating-point number.
  • Returns if evaluates to or ; otherwise, .

public static bool IsNaN( double d )

Returns a value that indicates whether the specified value is not a number ().

  • d A double-precision floating-point number.
  • Returns if evaluates to ; otherwise, .

public static bool IsNegative( double d )

Determines whether the specified value is negative.

  • d A double-precision floating-point number.
  • Returns if the value is negative; otherwise.

public static bool IsNegativeInfinity( double d )

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

  • d A double-precision floating-point number.
  • Returns if evaluates to ; otherwise, .

public static bool IsNormal( double d )

Determines whether the specified value is normal.

  • d A double-precision floating-point number.
  • Returns if the value is normal; otherwise.

public static bool IsPositiveInfinity( double d )

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

  • d A double-precision floating-point number.
  • Returns if evaluates to ; otherwise, .

public static bool IsSubnormal( double d )

Determines whether the specified value is subnormal.

  • d A double-precision floating-point number.
  • Returns if the value is subnormal; otherwise.

public static double MaxValue

Represents the largest possible value of a . This field is constant.

public static double MinValue

Represents the smallest possible value of a . This field is constant.

public static double NaN

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

public static double NegativeInfinity

Represents negative infinity. This field is constant.

public static bool op_Equality( double left, double right )

Returns a value that indicates whether two specified values are equal.

  • left The first value to compare.
  • right The second value to compare.
  • Returns if and are equal; otherwise, .

public static bool op_GreaterThan( double left, double right )

Returns a value that indicates whether a specified value is greater than another specified value.

  • left The first value to compare.
  • right The second value to compare.
  • Returns if is greater than ; otherwise, .

public static bool op_GreaterThanOrEqual( double left, double right )

Returns a value that indicates whether a specified value is greater than or equal to another specified value.

  • left The first value to compare.
  • right The second value to compare.
  • Returns if is greater than or equal to ; otherwise, .

public static bool op_Inequality( double left, double right )

Returns a value that indicates whether two specified values are not equal.

  • left The first value to compare.
  • right The second value to compare.
  • Returns if and are not equal; otherwise, .

public static bool op_LessThan( double left, double right )

Returns a value that indicates whether a specified value is less than another specified value.

  • left The first value to compare.
  • right The second value to compare.
  • Returns if is less than ; otherwise, .

public static bool op_LessThanOrEqual( double left, double right )

Returns a value that indicates whether a specified value is less than or equal to another specified value.

  • left The first value to compare.
  • right The second value to compare.
  • Returns if is less than or equal to ; otherwise, .

public static double Parse( string s )

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

  • s A 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 .

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

  • s A string that contains a number to convert.
  • style A bitwise combination of enumeration values that indicate the style elements that can be present in . A typical value to specify is a combination of combined with .
  • Returns A double-precision floating-point number that is equivalent to the numeric value or symbol specified in .

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

  • s A string that contains a number to convert.
  • style A bitwise combination of enumeration values that indicate the style elements that can be present in . A typical value to specify is combined with .
  • provider An object that supplies culture-specific formatting information about .
  • Returns A double-precision floating-point number that is equivalent to the numeric value or symbol specified in .

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

  • s A string that contains a number to convert.
  • provider An object that supplies culture-specific formatting information about .
  • Returns A double-precision floating-point number that is equivalent to the numeric value or symbol specified in .

public static double PositiveInfinity

Represents positive infinity. This field is constant.

public string ToString( IFormatProvider provider )

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

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

public string ToString( string format )

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

  • format A numeric format string.
  • Returns The string representation of the value of this instance as specified by .

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

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

public static bool TryParse( string s, ref 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.

  • s A string containing a number to convert.
  • result When this method returns, contains the double-precision floating-point number equivalent of the parameter, if the conversion succeeded, or zero if the conversion failed. The conversion fails if the parameter is or , is not a number in a valid format, or represents a number less than or greater than . This parameter is passed uninitialized; any value originally supplied in will be overwritten.
  • Returns if was converted successfully; otherwise, .

public static bool TryParse( string s, NumberStyles style, IFormatProvider provider, ref 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.

  • s A string containing a number to convert.
  • style A bitwise combination of values that indicates the permitted format of . A typical value to specify is combined with .
  • provider An that supplies culture-specific formatting information about .
  • result When this method returns, contains a double-precision floating-point number equivalent of the numeric value or symbol contained in , if the conversion succeeded, or zero if the conversion failed. The conversion fails if the parameter is or , is not in a format compliant with , represents a number less than or greater than , or if is not a valid combination of enumerated constants. This parameter is passed uninitialized; any value originally supplied in will be overwritten.
  • Returns if was converted successfully; otherwise, .

public static bool TryParse( ReadOnlySpan<char> s, IFormatProvider provider, ref double result )

😔 No documentation found.

public static double Sqrt( double x )

😔 No documentation found.

public static double RootN( double x, int n )

😔 No documentation found.

public static double Hypot( double x, double y )

😔 No documentation found.

public static double Cbrt( double x )

😔 No documentation found.

public static double Pow( double x, double y )

😔 No documentation found.

public static bool TryParse( string s, IFormatProvider provider, ref double result )

😔 No documentation found.

public static double MultiplyAddEstimate( double left, double right, double addend )

😔 No documentation found.

public static double MinMagnitudeNumber( double x, double y )

😔 No documentation found.

public static double MinMagnitude( double x, double y )

😔 No documentation found.

public static bool IsPositive( double value )

😔 No documentation found.

public static double MaxMagnitude( double x, double y )

😔 No documentation found.

public static bool IsRealNumber( double value )

😔 No documentation found.

public static bool IsOddInteger( double value )

😔 No documentation found.

public static bool IsInteger( double value )

😔 No documentation found.

public static bool IsEvenInteger( double value )

😔 No documentation found.

public static double CreateTruncating( TOther value )

😔 No documentation found.

public static double CreateSaturating( TOther value )

😔 No documentation found.

public static double Abs( double value )

😔 No documentation found.

public static double CreateChecked( TOther value )

😔 No documentation found.

public static double MaxMagnitudeNumber( double x, double y )

😔 No documentation found.

public static double Parse( ReadOnlySpan<char> s, IFormatProvider provider )

😔 No documentation found.

public static double MinNumber( double x, double y )

😔 No documentation found.

public static double Parse( ReadOnlySpan<byte> utf8Text, NumberStyles style = AllowThousands, Float, IFormatProvider provider = null )

😔 No documentation found.

public static double E

😔 No documentation found.

public static double NegativeZero

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public static bool TryParse( ReadOnlySpan<byte> utf8Text, IFormatProvider provider, ref double result )

😔 No documentation found.

public static double Parse( ReadOnlySpan<byte> utf8Text, IFormatProvider provider )

😔 No documentation found.

public static bool TryParse( ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider provider, ref double result )

😔 No documentation found.

public static int Sign( double value )

😔 No documentation found.

public static double TanPi( double x )

😔 No documentation found.

public static double Tan( double x )

😔 No documentation found.

public static double SinPi( double x )

😔 No documentation found.

public static ValueTuple<double,double> SinCosPi( double x )

😔 No documentation found.

public static ValueTuple<double,double> SinCos( double x )

😔 No documentation found.

public static double Sin( double x )

😔 No documentation found.

public static double RadiansToDegrees( double radians )

😔 No documentation found.

public static double DegreesToRadians( double degrees )

😔 No documentation found.

public static double CosPi( double x )

😔 No documentation found.

public static double Cos( double x )

😔 No documentation found.

public static double AtanPi( double x )

😔 No documentation found.

public static double Atan( double x )

😔 No documentation found.

public static double AsinPi( double x )

😔 No documentation found.

public static double Asin( double x )

😔 No documentation found.

public static double Acos( double x )

😔 No documentation found.

public static double AcosPi( double x )

😔 No documentation found.

public static double Tau

😔 No documentation found.

public static double Min( double x, double y )

😔 No documentation found.

public static double Round( double x, MidpointRounding mode )

😔 No documentation found.

public static double Round( double x, int digits )

😔 No documentation found.

public static double Round( double x )

😔 No documentation found.

public static double Floor( double x )

😔 No documentation found.

public static TInteger ConvertToIntegerNative( double value )

😔 No documentation found.

public static TInteger ConvertToInteger( double value )

😔 No documentation found.

public static double Ceiling( double x )

😔 No documentation found.

public static double Exp10M1( double x )

😔 No documentation found.

public static double Exp10( double x )

😔 No documentation found.

public static double Exp2M1( double x )

😔 No documentation found.

public static double Exp2( double x )

😔 No documentation found.

public static double Round( double x, int digits, MidpointRounding mode )

😔 No documentation found.

public static double ExpM1( double x )

😔 No documentation found.

public static double Log2( double value )

😔 No documentation found.

public static bool IsPow2( double value )

😔 No documentation found.

public TypeCode GetTypeCode( )

😔 No documentation found.

public static bool TryParse( ReadOnlySpan<char> s, NumberStyles style, IFormatProvider provider, ref double result )

😔 No documentation found.

public static bool TryParse( ReadOnlySpan<byte> utf8Text, ref double result )

😔 No documentation found.

public static bool TryParse( ReadOnlySpan<char> s, ref double result )

😔 No documentation found.

public static double Parse( ReadOnlySpan<char> s, NumberStyles style = AllowThousands, Float, IFormatProvider provider = null )

😔 No documentation found.

public bool TryFormat( Span<byte> utf8Destination, ref int bytesWritten, ReadOnlySpan<char> format = null, IFormatProvider provider = null )

😔 No documentation found.

public bool TryFormat( Span<char> destination, ref int charsWritten, ReadOnlySpan<char> format = null, IFormatProvider provider = null )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public static double Exp( double x )

😔 No documentation found.

public static double Cosh( double x )

😔 No documentation found.

public static double Truncate( double x )

😔 No documentation found.

public static double MaxNumber( double x, double y )

😔 No documentation found.

public static double Max( double x, double y )

😔 No documentation found.

public static double CopySign( double value, double sign )

😔 No documentation found.

public static double Clamp( double value, double min, double max )

😔 No documentation found.

public static double Log10P1( double x )

😔 No documentation found.

public static double Log10( double x )

😔 No documentation found.

public static double Log2P1( double x )

😔 No documentation found.

public static double LogP1( double x )

😔 No documentation found.

public static double Log( double x, double newBase )

😔 No documentation found.

public static double Log( double x )

😔 No documentation found.

public static double Tanh( double x )

😔 No documentation found.

public static double Sinh( double x )

😔 No documentation found.

public static double Atan2( double y, double x )

😔 No documentation found.

public static double Pi

😔 No documentation found.

public static double Asinh( double x )

😔 No documentation found.

public static double Acosh( double x )

😔 No documentation found.

public static double ScaleB( double x, int n )

😔 No documentation found.

public static double ReciprocalSqrtEstimate( double x )

😔 No documentation found.

public static double ReciprocalEstimate( double x )

😔 No documentation found.

public static double Lerp( double value1, double value2, double amount )

😔 No documentation found.

public static int ILogB( double x )

😔 No documentation found.

public static double Ieee754Remainder( double left, double right )

😔 No documentation found.

public static double FusedMultiplyAdd( double left, double right, double addend )

😔 No documentation found.

public static double BitIncrement( double x )

😔 No documentation found.

public static double BitDecrement( double x )

😔 No documentation found.

public static double Atanh( double x )

😔 No documentation found.

public static double Atan2Pi( double y, double x )

😔 No documentation found.