Edit

Share via


Double Struct

Definition

Represents a double-precision floating-point number.

public value class double : IComparable, IComparable<double>, IConvertible, IEquatable<double>, IFormattable
public value class double : IComparable, IComparable<double>, IConvertible, IEquatable<double>, ISpanFormattable
public value class double : IComparable<double>, IConvertible, IEquatable<double>, IParsable<double>, ISpanParsable<double>, System::Numerics::IAdditionOperators<double, double, double>, System::Numerics::IAdditiveIdentity<double, double>, System::Numerics::IBinaryFloatingPointIeee754<double>, System::Numerics::IBinaryNumber<double>, System::Numerics::IBitwiseOperators<double, double, double>, System::Numerics::IComparisonOperators<double, double, bool>, System::Numerics::IDecrementOperators<double>, System::Numerics::IDivisionOperators<double, double, double>, System::Numerics::IEqualityOperators<double, double, bool>, System::Numerics::IExponentialFunctions<double>, System::Numerics::IFloatingPoint<double>, System::Numerics::IFloatingPointConstants<double>, System::Numerics::IFloatingPointIeee754<double>, System::Numerics::IHyperbolicFunctions<double>, System::Numerics::IIncrementOperators<double>, System::Numerics::ILogarithmicFunctions<double>, System::Numerics::IMinMaxValue<double>, System::Numerics::IModulusOperators<double, double, double>, System::Numerics::IMultiplicativeIdentity<double, double>, System::Numerics::IMultiplyOperators<double, double, double>, System::Numerics::INumber<double>, System::Numerics::INumberBase<double>, System::Numerics::IPowerFunctions<double>, System::Numerics::IRootFunctions<double>, System::Numerics::ISignedNumber<double>, System::Numerics::ISubtractionOperators<double, double, double>, System::Numerics::ITrigonometricFunctions<double>, System::Numerics::IUnaryNegationOperators<double, double>, System::Numerics::IUnaryPlusOperators<double, double>
public value class double : IComparable<double>, IConvertible, IEquatable<double>, IParsable<double>, ISpanParsable<double>, IUtf8SpanParsable<double>, System::Numerics::IAdditionOperators<double, double, double>, System::Numerics::IAdditiveIdentity<double, double>, System::Numerics::IBinaryFloatingPointIeee754<double>, System::Numerics::IBinaryNumber<double>, System::Numerics::IBitwiseOperators<double, double, double>, System::Numerics::IComparisonOperators<double, double, bool>, System::Numerics::IDecrementOperators<double>, System::Numerics::IDivisionOperators<double, double, double>, System::Numerics::IEqualityOperators<double, double, bool>, System::Numerics::IExponentialFunctions<double>, System::Numerics::IFloatingPoint<double>, System::Numerics::IFloatingPointConstants<double>, System::Numerics::IFloatingPointIeee754<double>, System::Numerics::IHyperbolicFunctions<double>, System::Numerics::IIncrementOperators<double>, System::Numerics::ILogarithmicFunctions<double>, System::Numerics::IMinMaxValue<double>, System::Numerics::IModulusOperators<double, double, double>, System::Numerics::IMultiplicativeIdentity<double, double>, System::Numerics::IMultiplyOperators<double, double, double>, System::Numerics::INumber<double>, System::Numerics::INumberBase<double>, System::Numerics::IPowerFunctions<double>, System::Numerics::IRootFunctions<double>, System::Numerics::ISignedNumber<double>, System::Numerics::ISubtractionOperators<double, double, double>, System::Numerics::ITrigonometricFunctions<double>, System::Numerics::IUnaryNegationOperators<double, double>, System::Numerics::IUnaryPlusOperators<double, double>
public value class double : IComparable, IConvertible, IFormattable
public value class double : IComparable, IComparable<double>, IEquatable<double>, IFormattable
public struct Double : IComparable, IComparable<double>, IConvertible, IEquatable<double>, IFormattable
public readonly struct Double : IComparable, IComparable<double>, IConvertible, IEquatable<double>, IFormattable
public readonly struct Double : IComparable, IComparable<double>, IConvertible, IEquatable<double>, ISpanFormattable
public readonly struct Double : IComparable<double>, IConvertible, IEquatable<double>, IParsable<double>, ISpanParsable<double>, System.Numerics.IAdditionOperators<double,double,double>, System.Numerics.IAdditiveIdentity<double,double>, System.Numerics.IBinaryFloatingPointIeee754<double>, System.Numerics.IBinaryNumber<double>, System.Numerics.IBitwiseOperators<double,double,double>, System.Numerics.IComparisonOperators<double,double,bool>, System.Numerics.IDecrementOperators<double>, System.Numerics.IDivisionOperators<double,double,double>, System.Numerics.IEqualityOperators<double,double,bool>, System.Numerics.IExponentialFunctions<double>, System.Numerics.IFloatingPoint<double>, System.Numerics.IFloatingPointConstants<double>, System.Numerics.IFloatingPointIeee754<double>, System.Numerics.IHyperbolicFunctions<double>, System.Numerics.IIncrementOperators<double>, System.Numerics.ILogarithmicFunctions<double>, System.Numerics.IMinMaxValue<double>, System.Numerics.IModulusOperators<double,double,double>, System.Numerics.IMultiplicativeIdentity<double,double>, System.Numerics.IMultiplyOperators<double,double,double>, System.Numerics.INumber<double>, System.Numerics.INumberBase<double>, System.Numerics.IPowerFunctions<double>, System.Numerics.IRootFunctions<double>, System.Numerics.ISignedNumber<double>, System.Numerics.ISubtractionOperators<double,double,double>, System.Numerics.ITrigonometricFunctions<double>, System.Numerics.IUnaryNegationOperators<double,double>, System.Numerics.IUnaryPlusOperators<double,double>
public readonly struct Double : IComparable<double>, IConvertible, IEquatable<double>, IParsable<double>, ISpanParsable<double>, IUtf8SpanParsable<double>, System.Numerics.IAdditionOperators<double,double,double>, System.Numerics.IAdditiveIdentity<double,double>, System.Numerics.IBinaryFloatingPointIeee754<double>, System.Numerics.IBinaryNumber<double>, System.Numerics.IBitwiseOperators<double,double,double>, System.Numerics.IComparisonOperators<double,double,bool>, System.Numerics.IDecrementOperators<double>, System.Numerics.IDivisionOperators<double,double,double>, System.Numerics.IEqualityOperators<double,double,bool>, System.Numerics.IExponentialFunctions<double>, System.Numerics.IFloatingPoint<double>, System.Numerics.IFloatingPointConstants<double>, System.Numerics.IFloatingPointIeee754<double>, System.Numerics.IHyperbolicFunctions<double>, System.Numerics.IIncrementOperators<double>, System.Numerics.ILogarithmicFunctions<double>, System.Numerics.IMinMaxValue<double>, System.Numerics.IModulusOperators<double,double,double>, System.Numerics.IMultiplicativeIdentity<double,double>, System.Numerics.IMultiplyOperators<double,double,double>, System.Numerics.INumber<double>, System.Numerics.INumberBase<double>, System.Numerics.IPowerFunctions<double>, System.Numerics.IRootFunctions<double>, System.Numerics.ISignedNumber<double>, System.Numerics.ISubtractionOperators<double,double,double>, System.Numerics.ITrigonometricFunctions<double>, System.Numerics.IUnaryNegationOperators<double,double>, System.Numerics.IUnaryPlusOperators<double,double>
[System.Serializable]
public struct Double : IComparable, IConvertible, IFormattable
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct Double : IComparable, IComparable<double>, IConvertible, IEquatable<double>, IFormattable
public struct Double : IComparable, IComparable<double>, IEquatable<double>, IFormattable
type double = struct
    interface IConvertible
    interface IFormattable
type double = struct
    interface IConvertible
    interface ISpanFormattable
    interface IFormattable
type double = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<double>
    interface ISpanFormattable
    interface ISpanParsable<double>
    interface IAdditionOperators<double, double, double>
    interface IAdditiveIdentity<double, double>
    interface IBinaryFloatingPointIeee754<double>
    interface IBinaryNumber<double>
    interface IBitwiseOperators<double, double, double>
    interface IComparisonOperators<double, double, bool>
    interface IEqualityOperators<double, double, bool>
    interface IDecrementOperators<double>
    interface IDivisionOperators<double, double, double>
    interface IIncrementOperators<double>
    interface IModulusOperators<double, double, double>
    interface IMultiplicativeIdentity<double, double>
    interface IMultiplyOperators<double, double, double>
    interface INumber<double>
    interface INumberBase<double>
    interface ISubtractionOperators<double, double, double>
    interface IUnaryNegationOperators<double, double>
    interface IUnaryPlusOperators<double, double>
    interface IExponentialFunctions<double>
    interface IFloatingPointConstants<double>
    interface IFloatingPoint<double>
    interface ISignedNumber<double>
    interface IFloatingPointIeee754<double>
    interface IHyperbolicFunctions<double>
    interface ILogarithmicFunctions<double>
    interface IPowerFunctions<double>
    interface IRootFunctions<double>
    interface ITrigonometricFunctions<double>
    interface IMinMaxValue<double>
type double = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<double>
    interface ISpanFormattable
    interface ISpanParsable<double>
    interface IAdditionOperators<double, double, double>
    interface IAdditiveIdentity<double, double>
    interface IBinaryFloatingPointIeee754<double>
    interface IBinaryNumber<double>
    interface IBitwiseOperators<double, double, double>
    interface IComparisonOperators<double, double, bool>
    interface IEqualityOperators<double, double, bool>
    interface IDecrementOperators<double>
    interface IDivisionOperators<double, double, double>
    interface IIncrementOperators<double>
    interface IModulusOperators<double, double, double>
    interface IMultiplicativeIdentity<double, double>
    interface IMultiplyOperators<double, double, double>
    interface INumber<double>
    interface INumberBase<double>
    interface ISubtractionOperators<double, double, double>
    interface IUnaryNegationOperators<double, double>
    interface IUnaryPlusOperators<double, double>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<double>
    interface IExponentialFunctions<double>
    interface IFloatingPointConstants<double>
    interface IFloatingPoint<double>
    interface ISignedNumber<double>
    interface IFloatingPointIeee754<double>
    interface IHyperbolicFunctions<double>
    interface ILogarithmicFunctions<double>
    interface IPowerFunctions<double>
    interface IRootFunctions<double>
    interface ITrigonometricFunctions<double>
    interface IMinMaxValue<double>
type double = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<double>
    interface ISpanFormattable
    interface ISpanParsable<double>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<double>
    interface IAdditionOperators<double, double, double>
    interface IAdditiveIdentity<double, double>
    interface IBinaryFloatingPointIeee754<double>
    interface IBinaryNumber<double>
    interface IBitwiseOperators<double, double, double>
    interface IComparisonOperators<double, double, bool>
    interface IEqualityOperators<double, double, bool>
    interface IDecrementOperators<double>
    interface IDivisionOperators<double, double, double>
    interface IIncrementOperators<double>
    interface IModulusOperators<double, double, double>
    interface IMultiplicativeIdentity<double, double>
    interface IMultiplyOperators<double, double, double>
    interface INumber<double>
    interface INumberBase<double>
    interface ISubtractionOperators<double, double, double>
    interface IUnaryNegationOperators<double, double>
    interface IUnaryPlusOperators<double, double>
    interface IExponentialFunctions<double>
    interface IFloatingPointConstants<double>
    interface IFloatingPoint<double>
    interface ISignedNumber<double>
    interface IFloatingPointIeee754<double>
    interface IHyperbolicFunctions<double>
    interface ILogarithmicFunctions<double>
    interface IPowerFunctions<double>
    interface IRootFunctions<double>
    interface ITrigonometricFunctions<double>
    interface IMinMaxValue<double>
[<System.Serializable>]
type double = struct
    interface IFormattable
    interface IConvertible
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type double = struct
    interface IFormattable
    interface IConvertible
type double = struct
    interface IFormattable
Public Structure Double
Implements IComparable, IComparable(Of Double), IConvertible, IEquatable(Of Double), IFormattable
Public Structure Double
Implements IComparable, IComparable(Of Double), IConvertible, IEquatable(Of Double), ISpanFormattable
Public Structure Double
Implements IAdditionOperators(Of Double, Double, Double), IAdditiveIdentity(Of Double, Double), IBinaryFloatingPointIeee754(Of Double), IBinaryNumber(Of Double), IBitwiseOperators(Of Double, Double, Double), IComparable(Of Double), IComparisonOperators(Of Double, Double, Boolean), IConvertible, IDecrementOperators(Of Double), IDivisionOperators(Of Double, Double, Double), IEqualityOperators(Of Double, Double, Boolean), IEquatable(Of Double), IExponentialFunctions(Of Double), IFloatingPoint(Of Double), IFloatingPointConstants(Of Double), IFloatingPointIeee754(Of Double), IHyperbolicFunctions(Of Double), IIncrementOperators(Of Double), ILogarithmicFunctions(Of Double), IMinMaxValue(Of Double), IModulusOperators(Of Double, Double, Double), IMultiplicativeIdentity(Of Double, Double), IMultiplyOperators(Of Double, Double, Double), INumber(Of Double), INumberBase(Of Double), IParsable(Of Double), IPowerFunctions(Of Double), IRootFunctions(Of Double), ISignedNumber(Of Double), ISpanParsable(Of Double), ISubtractionOperators(Of Double, Double, Double), ITrigonometricFunctions(Of Double), IUnaryNegationOperators(Of Double, Double), IUnaryPlusOperators(Of Double, Double)
Public Structure Double
Implements IAdditionOperators(Of Double, Double, Double), IAdditiveIdentity(Of Double, Double), IBinaryFloatingPointIeee754(Of Double), IBinaryNumber(Of Double), IBitwiseOperators(Of Double, Double, Double), IComparable(Of Double), IComparisonOperators(Of Double, Double, Boolean), IConvertible, IDecrementOperators(Of Double), IDivisionOperators(Of Double, Double, Double), IEqualityOperators(Of Double, Double, Boolean), IEquatable(Of Double), IExponentialFunctions(Of Double), IFloatingPoint(Of Double), IFloatingPointConstants(Of Double), IFloatingPointIeee754(Of Double), IHyperbolicFunctions(Of Double), IIncrementOperators(Of Double), ILogarithmicFunctions(Of Double), IMinMaxValue(Of Double), IModulusOperators(Of Double, Double, Double), IMultiplicativeIdentity(Of Double, Double), IMultiplyOperators(Of Double, Double, Double), INumber(Of Double), INumberBase(Of Double), IParsable(Of Double), IPowerFunctions(Of Double), IRootFunctions(Of Double), ISignedNumber(Of Double), ISpanParsable(Of Double), ISubtractionOperators(Of Double, Double, Double), ITrigonometricFunctions(Of Double), IUnaryNegationOperators(Of Double, Double), IUnaryPlusOperators(Of Double, Double), IUtf8SpanParsable(Of Double)
Public Structure Double
Implements IComparable, IConvertible, IFormattable
Public Structure Double
Implements IComparable, IComparable(Of Double), IEquatable(Of Double), IFormattable
Inheritance
Double
Attributes
Implements
IComparable IComparable<Double> IConvertible IEquatable<Double> IFormattable ISpanFormattable IComparable<TSelf> IEquatable<TSelf> IParsable<Double> IParsable<TSelf> ISpanParsable<Double> ISpanParsable<TSelf> IAdditionOperators<Double,Double,Double> IAdditionOperators<TSelf,TSelf,TSelf> IAdditiveIdentity<Double,Double> IAdditiveIdentity<TSelf,TSelf> IBinaryFloatingPointIeee754<Double> IBinaryNumber<Double> IBinaryNumber<TSelf> IBitwiseOperators<Double,Double,Double> IBitwiseOperators<TSelf,TSelf,TSelf> IComparisonOperators<Double,Double,Boolean> IComparisonOperators<TSelf,TSelf,Boolean> IDecrementOperators<Double> IDecrementOperators<TSelf> IDivisionOperators<Double,Double,Double> IDivisionOperators<TSelf,TSelf,TSelf> IEqualityOperators<Double,Double,Boolean> IEqualityOperators<TSelf,TOther,TResult> IEqualityOperators<TSelf,TSelf,Boolean> IExponentialFunctions<Double> IExponentialFunctions<TSelf> IFloatingPoint<Double> IFloatingPoint<TSelf> IFloatingPointConstants<Double> IFloatingPointConstants<TSelf> IFloatingPointIeee754<Double> IFloatingPointIeee754<TSelf> IHyperbolicFunctions<Double> IHyperbolicFunctions<TSelf> IIncrementOperators<Double> IIncrementOperators<TSelf> ILogarithmicFunctions<Double> ILogarithmicFunctions<TSelf> IMinMaxValue<Double> IModulusOperators<Double,Double,Double> IModulusOperators<TSelf,TSelf,TSelf> IMultiplicativeIdentity<Double,Double> IMultiplicativeIdentity<TSelf,TSelf> IMultiplyOperators<Double,Double,Double> IMultiplyOperators<TSelf,TSelf,TSelf> INumber<Double> INumber<TSelf> INumberBase<Double> INumberBase<TSelf> IPowerFunctions<Double> IPowerFunctions<TSelf> IRootFunctions<Double> IRootFunctions<TSelf> ISignedNumber<Double> ISignedNumber<TSelf> ISubtractionOperators<Double,Double,Double> ISubtractionOperators<TSelf,TSelf,TSelf> ITrigonometricFunctions<Double> ITrigonometricFunctions<TSelf> IUnaryNegationOperators<Double,Double> IUnaryNegationOperators<TSelf,TSelf> IUnaryPlusOperators<Double,Double> IUnaryPlusOperators<TSelf,TSelf> IUtf8SpanFormattable IUtf8SpanParsable<Double> IUtf8SpanParsable<TSelf>

Remarks

For more information about this API, see Supplemental API remarks for Double.

Fields

E

Represents the natural logarithmic base, specified by the constant, e.

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.

NegativeZero

Represents the number negative zero (-0).

Pi

Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π.

PositiveInfinity

Represents positive infinity. This field is constant.

Tau

Represents the number of radians in one turn, specified by the constant, τ.

Methods

Abs(Double)

Computes the absolute of a value.

Acos(Double)

Computes the arc-cosine of a value.

Acosh(Double)

Computes the hyperbolic arc-cosine of a value.

AcosPi(Double)

Computes the arc-cosine of a value and divides the result by pi.

Asin(Double)

Computes the arc-sine of a value.

Asinh(Double)

Computes the hyperbolic arc-sine of a value.

AsinPi(Double)

Computes the arc-sine of a value and divides the result by pi.

Atan(Double)

Computes the arc-tangent of a value.

Atan2(Double, Double)

Computes the arc-tangent of the quotient of two values.

Atan2Pi(Double, Double)

Computes the arc-tangent for the quotient of two values and divides the result by pi.

Atanh(Double)

Computes the hyperbolic arc-tangent of a value.

AtanPi(Double)

Computes the arc-tangent of a value and divides the result by pi.

BitDecrement(Double)

Decrements a value to the smallest value that compares less than a given value.

BitIncrement(Double)

Increments a value to the smallest value that compares greater than a given value.

Cbrt(Double)

Computes the cube-root of a value.

Ceiling(Double)

Computes the ceiling of a value.

Clamp(Double, Double, Double)

Clamps a value to an inclusive minimum and maximum value.

CompareTo(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.

CompareTo(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.

CopySign(Double, Double)

Copies the sign of a value to the sign of another value.

Cos(Double)

Computes the cosine of a value.

Cosh(Double)

Computes the hyperbolic cosine of a value.

CosPi(Double)

Computes the cosine of a value that has been multipled by pi.

CreateChecked<TOther>(TOther)

Creates an instance of the current type from a value, throwing an overflow exception for any values that fall outside the representable range of the current type.

CreateSaturating<TOther>(TOther)

Creates an instance of the current type from a value, saturating any values that fall outside the representable range of the current type.

CreateTruncating<TOther>(TOther)

Creates an instance of the current type from a value, truncating any values that fall outside the representable range of the current type.

DegreesToRadians(Double)

Converts a given value from degrees to radians.

Equals(Double)

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

Equals(Object)

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

Exp(Double)

Computes E raised to a given power.

Exp10(Double)

Computes 10 raised to a given power.

Exp10M1(Double)

Computes 10 raised to a given power and subtracts one.

Exp2(Double)

Computes 2 raised to a given power.

Exp2M1(Double)

Computes 2 raised to a given power and subtracts one.

ExpM1(Double)

Computes E raised to a given power and subtracts one.

Floor(Double)

Computes the floor of a value.

FusedMultiplyAdd(Double, Double, Double)

Computes the fused multiply-add of three values.

GetHashCode()

Returns the hash code for this instance.

GetTypeCode()

Returns the TypeCode for value type Double.

Hypot(Double, Double)

Computes the hypotenuse given two values representing the lengths of the shorter sides in a right-angled triangle.

Ieee754Remainder(Double, Double)

Computes the remainder of two values as specified by IEEE 754.

ILogB(Double)

Computes the integer logarithm of a value.

IsEvenInteger(Double)

Determines if a value represents an even integral number.

IsFinite(Double)

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

IsInfinity(Double)

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

IsInteger(Double)

Determines if a value represents an integral value.

IsNaN(Double)

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

IsNegative(Double)

Determines whether the specified value is negative.

IsNegativeInfinity(Double)

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

IsNormal(Double)

Determines whether the specified value is normal.

IsOddInteger(Double)

Determines if a value represents an odd integral number.

IsPositive(Double)

Determines if a value is positive.

IsPositiveInfinity(Double)

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

IsPow2(Double)

Determines if a value is a power of two.

IsRealNumber(Double)

Determines if a value represents a real number.

IsSubnormal(Double)

Determines whether the specified value is subnormal.

Lerp(Double, Double, Double)

Performs a linear interpolation between two values based on the given weight.

Log(Double)

Computes the natural (base-E logarithm of a value.

Log(Double, Double)

Computes the logarithm of a value in the specified base.

Log10(Double)

Computes the base-10 logarithm of a value.

Log10P1(Double)

Computes the base-10 logarithm of a value plus one.

Log2(Double)

Computes the log2 of a value.

Log2P1(Double)

Computes the base-2 logarithm of a value plus one.

LogP1(Double)

Computes the natural (base-E) logarithm of a value plus one.

Max(Double, Double)

Compares two values to compute which is greater.

MaxMagnitude(Double, Double)

Compares two values to compute which is greater.

MaxMagnitudeNumber(Double, Double)

Compares two values to compute which has the greater magnitude and returning the other value if an input is NaN.

MaxNumber(Double, Double)

Compares two values to compute which is greater and returning the other value if an input is NaN.

Min(Double, Double)

Compares two values to compute which is lesser.

MinMagnitude(Double, Double)

Compares two values to compute which is lesser.

MinMagnitudeNumber(Double, Double)

Compares two values to compute which has the lesser magnitude and returning the other value if an input is NaN.

MinNumber(Double, Double)

Compares two values to compute which is lesser and returning the other value if an input is NaN.

Parse(ReadOnlySpan<Byte>, IFormatProvider)

Parses a span of UTF-8 characters into a value.

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

Parses a span of UTF-8 characters into a value.

Parse(ReadOnlySpan<Char>, IFormatProvider)

Parses a span of characters into a value.

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

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

Parse(String)

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

Parse(String, IFormatProvider)

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

Parse(String, NumberStyles)

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

Parse(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.

Pow(Double, Double)

Computes a value raised to a given power.

RadiansToDegrees(Double)

Converts a given value from radians to degrees.

ReciprocalEstimate(Double)

Computes an estimate of the reciprocal of a value.

ReciprocalSqrtEstimate(Double)

Computes an estimate of the reciprocal square root of a value.

RootN(Double, Int32)

Computes the n-th root of a value.

Round(Double)

Rounds a value to the nearest integer using the default rounding mode (ToEven).

Round(Double, Int32)

Rounds a value to a specified number of fractional-digits using the default rounding mode (ToEven).

Round(Double, Int32, MidpointRounding)

Rounds a value to a specified number of fractional-digits using the default rounding mode (ToEven).

Round(Double, MidpointRounding)

Rounds a value to the nearest integer using the specified rounding mode.

ScaleB(Double, Int32)

Computes the product of a value and its base-radix raised to the specified power.

Sign(Double)

Computes the sign of a value.

Sin(Double)

Computes the sine of a value.

SinCos(Double)

Computes the sine and cosine of a value.

SinCosPi(Double)

Computes the sine and cosine of a value.

Sinh(Double)

Computes the hyperbolic sine of a value.

SinPi(Double)

Computes the sine of a value that has been multiplied by pi.

Sqrt(Double)

Computes the square-root of a value.

Tan(Double)

Computes the tangent of a value.

Tanh(Double)

Computes the hyperbolic tangent of a value.

TanPi(Double)

Computes the tangent of a value that has been multipled by pi.

ToString()

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

ToString(IFormatProvider)

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

ToString(String)

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

ToString(String, IFormatProvider)

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

Truncate(Double)

Truncates a value.

TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider)

Tries to format the value of the current instance as UTF-8 into the provided span of bytes.

TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

Tries to format the value of the current double instance into the provided span of characters.

TryParse(ReadOnlySpan<Byte>, Double)

Tries to convert a UTF-8 character span containing the string representation of a number to its double-precision floating-point number equivalent.

TryParse(ReadOnlySpan<Byte>, IFormatProvider, Double)

Tries to parse a span of UTF-8 characters into a value.

TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, Double)

Tries to parse a span of UTF-8 characters into a value.

TryParse(ReadOnlySpan<Char>, Double)

Converts the span 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.

TryParse(ReadOnlySpan<Char>, IFormatProvider, Double)

Tries to parse a span of characters into a value.

TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, Double)

Converts a character span containing 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.

TryParse(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.

TryParse(String, IFormatProvider, Double)

Tries to parse a string into a value.

TryParse(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.

Operators

Equality(Double, Double)

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

GreaterThan(Double, Double)

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

GreaterThanOrEqual(Double, Double)

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

Inequality(Double, Double)

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

LessThan(Double, Double)

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

LessThanOrEqual(Double, Double)

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

Explicit Interface Implementations

IAdditionOperators<Double,Double,Double>.Addition(Double, Double)

Adds two values together to compute their sum.

IAdditiveIdentity<Double,Double>.AdditiveIdentity

Gets the additive identity of the current type.

IBinaryNumber<Double>.AllBitsSet

Gets an instance of the binary type in which all bits are set.

IBitwiseOperators<Double,Double,Double>.BitwiseAnd(Double, Double)

Computes the bitwise-and of two values.

IBitwiseOperators<Double,Double,Double>.BitwiseOr(Double, Double)

Computes the bitwise-or of two values.

IBitwiseOperators<Double,Double,Double>.ExclusiveOr(Double, Double)

Computes the exclusive-or of two values.

IBitwiseOperators<Double,Double,Double>.OnesComplement(Double)

Computes the ones-complement representation of a given value.

IComparable.CompareTo(Object)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

IConvertible.GetTypeCode()

Returns the TypeCode for this instance.

IConvertible.ToBoolean(IFormatProvider)

For a description of this member, see ToBoolean(IFormatProvider).

IConvertible.ToByte(IFormatProvider)

For a description of this member, see ToByte(IFormatProvider).

IConvertible.ToChar(IFormatProvider)

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

IConvertible.ToDateTime(IFormatProvider)

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

IConvertible.ToDecimal(IFormatProvider)

For a description of this member, see ToDecimal(IFormatProvider).

IConvertible.ToDouble(IFormatProvider)

For a description of this member, see ToDouble(IFormatProvider).

IConvertible.ToInt16(IFormatProvider)

For a description of this member, see ToInt16(IFormatProvider).

IConvertible.ToInt32(IFormatProvider)

For a description of this member, see ToInt32(IFormatProvider).

IConvertible.ToInt64(IFormatProvider)

For a description of this member, see ToInt64(IFormatProvider).

IConvertible.ToSByte(IFormatProvider)

For a description of this member, see ToSByte(IFormatProvider).

IConvertible.ToSingle(IFormatProvider)

For a description of this member, see ToSingle(IFormatProvider).

IConvertible.ToType(Type, IFormatProvider)

For a description of this member, see ToType(Type, IFormatProvider).

IConvertible.ToUInt16(IFormatProvider)

For a description of this member, see ToUInt16(IFormatProvider).

IConvertible.ToUInt32(IFormatProvider)

For a description of this member, see ToUInt32(IFormatProvider).

IConvertible.ToUInt64(IFormatProvider)

For a description of this member, see ToUInt64(IFormatProvider).

IDecrementOperators<Double>.Decrement(Double)

Decrements a value.

IDivisionOperators<Double,Double,Double>.Division(Double, Double)

Divides one value by another to compute their quotient.

IFloatingPoint<Double>.GetExponentByteCount()

Gets the number of bytes that will be written as part of TryWriteExponentLittleEndian(Span<Byte>, Int32).

IFloatingPoint<Double>.GetExponentShortestBitLength()

Gets the length, in bits, of the shortest two's complement representation of the current exponent.

IFloatingPoint<Double>.GetSignificandBitLength()

Gets the length, in bits, of the current significand.

IFloatingPoint<Double>.GetSignificandByteCount()

Gets the number of bytes that will be written as part of TryWriteSignificandLittleEndian(Span<Byte>, Int32).

IFloatingPoint<Double>.TryWriteExponentBigEndian(Span<Byte>, Int32)

Tries to write the current exponent, in big-endian format, to a given span.

IFloatingPoint<Double>.TryWriteExponentLittleEndian(Span<Byte>, Int32)

Tries to write the current exponent, in little-endian format, to a given span.

IFloatingPoint<Double>.TryWriteSignificandBigEndian(Span<Byte>, Int32)

Tries to write the current significand, in big-endian format, to a given span.

IFloatingPoint<Double>.TryWriteSignificandLittleEndian(Span<Byte>, Int32)

Tries to write the current significand, in little-endian format, to a given span.

IFloatingPointConstants<Double>.E

Gets the mathematical constant e.

IFloatingPointConstants<Double>.Pi

Gets the mathematical constant pi.

IFloatingPointConstants<Double>.Tau

Gets the mathematical constant tau.

IFloatingPointIeee754<Double>.Epsilon

Gets the smallest value such that can be added to 0 that does not result in 0.

IFloatingPointIeee754<Double>.NaN

Gets a value that represents NaN.

IFloatingPointIeee754<Double>.NegativeInfinity

Gets a value that represents negative infinity.

IFloatingPointIeee754<Double>.NegativeZero

Gets a value that represents negative zero.

IFloatingPointIeee754<Double>.PositiveInfinity

Gets a value that represents positive infinity.

IIncrementOperators<Double>.Increment(Double)

Increments a value.

IMinMaxValue<Double>.MaxValue

Gets the maximum value of the current type.

IMinMaxValue<Double>.MinValue

Gets the minimum value of the current type.

IModulusOperators<Double,Double,Double>.Modulus(Double, Double)

Divides two values together to compute their modulus or remainder.

IMultiplicativeIdentity<Double,Double>.MultiplicativeIdentity

Gets the multiplicative identity of the current type.

IMultiplyOperators<Double,Double,Double>.Multiply(Double, Double)

Multiplies two values together to compute their product.

INumberBase<Double>.IsCanonical(Double)

Determines if a value is in its canonical representation.

INumberBase<Double>.IsComplexNumber(Double)

Determines if a value represents a complex number.

INumberBase<Double>.IsImaginaryNumber(Double)

Determines if a value represents a pure imaginary number.

INumberBase<Double>.IsZero(Double)

Determines if a value is zero.

INumberBase<Double>.One

Gets the value 1 for the type.

INumberBase<Double>.Radix

Gets the radix, or base, for the type.

INumberBase<Double>.TryConvertFromChecked<TOther>(TOther, Double)
INumberBase<Double>.TryConvertFromSaturating<TOther>(TOther, Double)
INumberBase<Double>.TryConvertFromTruncating<TOther>(TOther, Double)
INumberBase<Double>.TryConvertToChecked<TOther>(Double, TOther)

Tries to convert an instance of the the current type to another type, throwing an overflow exception for any values that fall outside the representable range of the current type.

INumberBase<Double>.TryConvertToSaturating<TOther>(Double, TOther)

Tries to convert an instance of the the current type to another type, saturating any values that fall outside the representable range of the current type.

INumberBase<Double>.TryConvertToTruncating<TOther>(Double, TOther)

Tries to convert an instance of the the current type to another type, truncating any values that fall outside the representable range of the current type.

INumberBase<Double>.Zero

Gets the value 0 for the type.

ISignedNumber<Double>.NegativeOne

Gets the value -1 for the type.

ISubtractionOperators<Double,Double,Double>.Subtraction(Double, Double)

Subtracts two values to compute their difference.

IUnaryNegationOperators<Double,Double>.UnaryNegation(Double)

Computes the unary negation of a value.

IUnaryPlusOperators<Double,Double>.UnaryPlus(Double)

Computes the unary plus of a value.

Applies to

Thread Safety

All members of this type are thread safe. Members that appear to modify instance state actually return a new instance initialized with the new value. As with any other type, reading and writing to a shared variable that contains an instance of this type must be protected by a lock to guarantee thread safety.

See also