Language

Decimal128 Struct

Definition

public value class Decimal128 : IComparable, IEquatable, IParsable, ISpanParsable, IUtf8SpanParsable, System::Numerics::IAdditionOperators, System::Numerics::IAdditiveIdentity, System::Numerics::IComparisonOperators, System::Numerics::IDecimalFloatingPointIeee754, System::Numerics::IDecrementOperators, System::Numerics::IDivisionOperators, System::Numerics::IEqualityOperators, System::Numerics::IExponentialFunctions, System::Numerics::IFloatingPoint, System::Numerics::IFloatingPointConstants, System::Numerics::IFloatingPointIeee754, System::Numerics::IHyperbolicFunctions, System::Numerics::IIncrementOperators, System::Numerics::ILogarithmicFunctions, System::Numerics::IMinMaxValue, System::Numerics::IModulusOperators, System::Numerics::IMultiplicativeIdentity, System::Numerics::IMultiplyOperators, System::Numerics::INumber, System::Numerics::INumberBase, System::Numerics::IPowerFunctions, System::Numerics::IRootFunctions, System::Numerics::ISignedNumber, System::Numerics::ISubtractionOperators, System::Numerics::ITrigonometricFunctions, System::Numerics::IUnaryNegationOperators, System::Numerics::IUnaryPlusOperators
public readonly struct Decimal128 : IComparable, IEquatable, IParsable, ISpanParsable, IUtf8SpanParsable, System.Numerics.IAdditionOperators, System.Numerics.IAdditiveIdentity, System.Numerics.IComparisonOperators, System.Numerics.IDecimalFloatingPointIeee754, System.Numerics.IDecrementOperators, System.Numerics.IDivisionOperators, System.Numerics.IEqualityOperators, System.Numerics.IExponentialFunctions, System.Numerics.IFloatingPoint, System.Numerics.IFloatingPointConstants, System.Numerics.IFloatingPointIeee754, System.Numerics.IHyperbolicFunctions, System.Numerics.IIncrementOperators, System.Numerics.ILogarithmicFunctions, System.Numerics.IMinMaxValue, System.Numerics.IModulusOperators, System.Numerics.IMultiplicativeIdentity, System.Numerics.IMultiplyOperators, System.Numerics.INumber, System.Numerics.INumberBase, System.Numerics.IPowerFunctions, System.Numerics.IRootFunctions, System.Numerics.ISignedNumber, System.Numerics.ISubtractionOperators, System.Numerics.ITrigonometricFunctions, System.Numerics.IUnaryNegationOperators, System.Numerics.IUnaryPlusOperators
type Decimal128 = struct
    interface IFormattable
    interface IParsable
    interface ISpanFormattable
    interface ISpanParsable
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable
    interface IAdditionOperators
    interface IAdditiveIdentity
    interface IComparisonOperators
    interface IEqualityOperators
    interface IDecimalFloatingPointIeee754
    interface IDecrementOperators
    interface IDivisionOperators
    interface IExponentialFunctions
    interface IFloatingPointConstants
    interface IIncrementOperators
    interface IMultiplicativeIdentity
    interface IMultiplyOperators
    interface INumberBase
    interface ISubtractionOperators
    interface IUnaryNegationOperators
    interface IUnaryPlusOperators
    interface IFloatingPoint
    interface IModulusOperators
    interface INumber
    interface ISignedNumber
    interface IFloatingPointIeee754
    interface IHyperbolicFunctions
    interface ILogarithmicFunctions
    interface IPowerFunctions
    interface IRootFunctions
    interface ITrigonometricFunctions
    interface IMinMaxValue
Public Structure Decimal128
Implements IAdditionOperators(Of Decimal128, Decimal128, Decimal128), IAdditiveIdentity(Of Decimal128, Decimal128), IComparable(Of Decimal128), IComparisonOperators(Of Decimal128, Decimal128, Boolean), IDecimalFloatingPointIeee754(Of Decimal128), IDecrementOperators(Of Decimal128), IDivisionOperators(Of Decimal128, Decimal128, Decimal128), IEqualityOperators(Of Decimal128, Decimal128, Boolean), IEquatable(Of Decimal128), IExponentialFunctions(Of Decimal128), IFloatingPoint(Of Decimal128), IFloatingPointConstants(Of Decimal128), IFloatingPointIeee754(Of Decimal128), IHyperbolicFunctions(Of Decimal128), IIncrementOperators(Of Decimal128), ILogarithmicFunctions(Of Decimal128), IMinMaxValue(Of Decimal128), IModulusOperators(Of Decimal128, Decimal128, Decimal128), IMultiplicativeIdentity(Of Decimal128, Decimal128), IMultiplyOperators(Of Decimal128, Decimal128, Decimal128), INumber(Of Decimal128), INumberBase(Of Decimal128), IParsable(Of Decimal128), IPowerFunctions(Of Decimal128), IRootFunctions(Of Decimal128), ISignedNumber(Of Decimal128), ISpanParsable(Of Decimal128), ISubtractionOperators(Of Decimal128, Decimal128, Decimal128), ITrigonometricFunctions(Of Decimal128), IUnaryNegationOperators(Of Decimal128, Decimal128), IUnaryPlusOperators(Of Decimal128, Decimal128), IUtf8SpanParsable(Of Decimal128)
Inheritance
Decimal128
Implements
IComparable IComparable<Decimal128> IComparable IEquatable<Decimal128> IEquatable IFormattable IParsable<Decimal128> IParsable ISpanFormattable ISpanParsable<Decimal128> ISpanParsable IUtf8SpanFormattable IUtf8SpanParsable<Decimal128> IUtf8SpanParsable IAdditionOperators<Decimal128,Decimal128,Decimal128> IAdditionOperators IAdditiveIdentity<Decimal128,Decimal128> IAdditiveIdentity IComparisonOperators<Decimal128,Decimal128,Boolean> IComparisonOperatorsBoolean> IDecimalFloatingPointIeee754<Decimal128> IDecrementOperators<Decimal128> IDecrementOperators IDivisionOperators<Decimal128,Decimal128,Decimal128> IDivisionOperators IEqualityOperators<Decimal128,Decimal128,Boolean> IEqualityOperators IEqualityOperatorsBoolean> IExponentialFunctions<Decimal128> IExponentialFunctions IFloatingPoint<Decimal128> IFloatingPoint IFloatingPointConstants<Decimal128> IFloatingPointConstants IFloatingPointIeee754<Decimal128> IFloatingPointIeee754 IHyperbolicFunctions<Decimal128> IHyperbolicFunctions IIncrementOperators<Decimal128> IIncrementOperators ILogarithmicFunctions<Decimal128> ILogarithmicFunctions IMinMaxValue<Decimal128> IModulusOperators<Decimal128,Decimal128,Decimal128> IModulusOperators IMultiplicativeIdentity<Decimal128,Decimal128> IMultiplicativeIdentity IMultiplyOperators<Decimal128,Decimal128,Decimal128> IMultiplyOperators INumber<Decimal128> INumber INumberBase<Decimal128> INumberBase IPowerFunctions<Decimal128> IPowerFunctions IRootFunctions<Decimal128> IRootFunctions ISignedNumber<Decimal128> ISignedNumber ISubtractionOperators<Decimal128,Decimal128,Decimal128> ISubtractionOperators ITrigonometricFunctions<Decimal128> ITrigonometricFunctions IUnaryNegationOperators<Decimal128,Decimal128> IUnaryNegationOperators IUnaryPlusOperators<Decimal128,Decimal128> IUnaryPlusOperators

Properties

Name Description
E
Epsilon
MaxValue
MinValue
NaN
NegativeInfinity
NegativeOne
NegativeZero
One
Pi
PositiveInfinity
Tau
Zero

Methods

Name Description
Abs(Decimal128)
Acos(Decimal128)
Acosh(Decimal128)
AcosPi(Decimal128)
Asin(Decimal128)
Asinh(Decimal128)
AsinPi(Decimal128)
Atan(Decimal128)
Atan2(Decimal128, Decimal128)
Atan2Pi(Decimal128, Decimal128)
Atanh(Decimal128)
AtanPi(Decimal128)
BitDecrement(Decimal128)
BitIncrement(Decimal128)
Cbrt(Decimal128)
Ceiling(Decimal128)
Clamp(Decimal128, Decimal128, Decimal128)
ClampNative(Decimal128, Decimal128, Decimal128)
CompareTo(Decimal128)
CompareTo(Object)
ConvertToInteger(Decimal128)
ConvertToIntegerNative(Decimal128)
CopySign(Decimal128, Decimal128)
Cos(Decimal128)
Cosh(Decimal128)
CosPi(Decimal128)
CreateChecked(TOther)
CreateSaturating(TOther)
CreateTruncating(TOther)
DecodeBinary(UInt128)
DecodeDecimal(UInt128)
EncodeBinary(Decimal128)
EncodeDecimal(Decimal128)
Equals(Decimal128)
Equals(Object)
Exp(Decimal128)
Exp10(Decimal128)
Exp10M1(Decimal128)
Exp2(Decimal128)
Exp2M1(Decimal128)
ExpM1(Decimal128)
Floor(Decimal128)
FusedMultiplyAdd(Decimal128, Decimal128, Decimal128)
GetHashCode()
GetQuantum(Decimal128)
HaveSameQuantum(Decimal128, Decimal128)
Hypot(Decimal128, Decimal128)
Ieee754Remainder(Decimal128, Decimal128)
ILogB(Decimal128)
IsEvenInteger(Decimal128)
IsFinite(Decimal128)
IsInfinity(Decimal128)
IsInteger(Decimal128)
IsNaN(Decimal128)
IsNegative(Decimal128)
IsNegativeInfinity(Decimal128)
IsNormal(Decimal128)
IsOddInteger(Decimal128)
IsPositive(Decimal128)
IsPositiveInfinity(Decimal128)
IsRealNumber(Decimal128)
IsSubnormal(Decimal128)
Lerp(Decimal128, Decimal128, Decimal128)
Log(Decimal128, Decimal128)
Log(Decimal128)
Log10(Decimal128)
Log10P1(Decimal128)
Log2(Decimal128)
Log2P1(Decimal128)
LogP1(Decimal128)
Max(Decimal128, Decimal128)
MaxMagnitude(Decimal128, Decimal128)
MaxMagnitudeNumber(Decimal128, Decimal128)
MaxNative(Decimal128, Decimal128)
MaxNumber(Decimal128, Decimal128)
Min(Decimal128, Decimal128)
MinMagnitude(Decimal128, Decimal128)
MinMagnitudeNumber(Decimal128, Decimal128)
MinNative(Decimal128, Decimal128)
MinNumber(Decimal128, Decimal128)
MultiplyAddEstimate(Decimal128, Decimal128, Decimal128)
Parse(ReadOnlySpan, IFormatProvider)
Parse(ReadOnlySpan, NumberStyles, IFormatProvider)
Parse(ReadOnlySpan, IFormatProvider)
Parse(ReadOnlySpan, NumberStyles, IFormatProvider)
Parse(String, IFormatProvider)
Parse(String, NumberStyles, IFormatProvider)
Parse(String, NumberStyles)
Parse(String)
Pow(Decimal128, Decimal128)
Quantize(Decimal128, Decimal128)
ReciprocalEstimate(Decimal128)
ReciprocalSqrtEstimate(Decimal128)
RootN(Decimal128, Int32)
Round(Decimal128, Int32, MidpointRounding)
Round(Decimal128, Int32)
Round(Decimal128, MidpointRounding)
Round(Decimal128)
ScaleB(Decimal128, Int32)
Sign(Decimal128)
Sin(Decimal128)
SinCos(Decimal128)
SinCosPi(Decimal128)
Sinh(Decimal128)
SinPi(Decimal128)
Sqrt(Decimal128)
Tan(Decimal128)
Tanh(Decimal128)
TanPi(Decimal128)
ToString()
ToString(IFormatProvider)
ToString(String, IFormatProvider)
ToString(String)
Truncate(Decimal128)
TryFormat(Span, Int32, ReadOnlySpan, IFormatProvider)
TryFormat(Span, Int32, ReadOnlySpan, IFormatProvider)
TryParse(ReadOnlySpan, Decimal128)
TryParse(ReadOnlySpan, IFormatProvider, Decimal128)
TryParse(ReadOnlySpan, Decimal128)
TryParse(ReadOnlySpan, IFormatProvider, Decimal128)
TryParse(ReadOnlySpan, NumberStyles, IFormatProvider, Decimal128)
TryParse(String, Decimal128)
TryParse(String, IFormatProvider, Decimal128)
TryParse(String, NumberStyles, IFormatProvider, Decimal128)
TryParsePartial(ReadOnlySpan, NumberStyles, IFormatProvider, Decimal128, Int32)
TryParsePartial(ReadOnlySpan, NumberStyles, IFormatProvider, Decimal128, Int32)
TryParsePartial(String, NumberStyles, IFormatProvider, Decimal128, Int32)

Operators

Name Description
Addition(Decimal128, Decimal128)
CheckedExplicit(Decimal128 to Byte)
Decrement(Decimal128)
Division(Decimal128, Decimal128)
Equality(Decimal128, Decimal128)
Explicit(Decimal128 to Byte)
Explicit(Decimal128 to Char)
Explicit(Decimal128 to Decimal)
Explicit(Decimal128 to Double)
Explicit(Decimal128 to Half)
Explicit(Decimal128 to Int128)
Explicit(Decimal128 to Int16)
Explicit(Decimal128 to Int32)
Explicit(Decimal128 to Int64)
Explicit(Decimal128 to IntPtr)
Explicit(Decimal128 to SByte)
Explicit(Decimal128 to Single)
Explicit(Decimal128 to UInt128)
Explicit(Decimal128 to UInt16)
Explicit(Decimal128 to UInt32)
Explicit(Decimal128 to UInt64)
Explicit(Decimal128 to UIntPtr)
Explicit(Double to Decimal128)
Explicit(Half to Decimal128)
Explicit(Int128 to Decimal128)
Explicit(Single to Decimal128)
Explicit(UInt128 to Decimal128)
GreaterThan(Decimal128, Decimal128)
GreaterThanOrEqual(Decimal128, Decimal128)
Implicit(Byte to Decimal128)
Implicit(Char to Decimal128)
Implicit(Decimal to Decimal128)
Implicit(Int16 to Decimal128)
Implicit(Int32 to Decimal128)
Implicit(Int64 to Decimal128)
Implicit(IntPtr to Decimal128)
Implicit(SByte to Decimal128)
Implicit(UInt16 to Decimal128)
Implicit(UInt32 to Decimal128)
Implicit(UInt64 to Decimal128)
Implicit(UIntPtr to Decimal128)
Increment(Decimal128)
Inequality(Decimal128, Decimal128)
LessThan(Decimal128, Decimal128)
LessThanOrEqual(Decimal128, Decimal128)
Modulus(Decimal128, Decimal128)
Multiply(Decimal128, Decimal128)
Subtraction(Decimal128, Decimal128)
UnaryNegation(Decimal128)
UnaryPlus(Decimal128)

Explicit Interface Implementations

Name Description
IAdditiveIdentity.AdditiveIdentity
IFloatingPoint.GetExponentByteCount()
IFloatingPoint.GetExponentShortestBitLength()
IFloatingPoint.GetSignificandBitLength()
IFloatingPoint.GetSignificandByteCount()
IFloatingPoint.TryWriteExponentBigEndian(Span, Int32)
IFloatingPoint.TryWriteExponentLittleEndian(Span, Int32)
IFloatingPoint.TryWriteSignificandBigEndian(Span, Int32)
IFloatingPoint.TryWriteSignificandLittleEndian(Span, Int32)
IMultiplicativeIdentity.MultiplicativeIdentity
INumberBase.IsCanonical(Decimal128)
INumberBase.IsComplexNumber(Decimal128)
INumberBase.IsImaginaryNumber(Decimal128)
INumberBase.IsZero(Decimal128)
INumberBase.Radix
INumberBase.TryConvertFromChecked(TOther, Decimal128)
INumberBase.TryConvertFromSaturating(TOther, Decimal128)
INumberBase.TryConvertFromTruncating(TOther, Decimal128)
INumberBase.TryConvertToChecked(Decimal128, TOther)
INumberBase.TryConvertToSaturating(Decimal128, TOther)
INumberBase.TryConvertToTruncating(Decimal128, TOther)

Applies to