Decimal128 Struct

Definition

public value class Decimal128 : IComparable<System::Numerics::Decimal128>, IEquatable<System::Numerics::Decimal128>, IParsable<System::Numerics::Decimal128>, ISpanParsable<System::Numerics::Decimal128>, IUtf8SpanParsable<System::Numerics::Decimal128>, System::Numerics::IAdditionOperators<System::Numerics::Decimal128, System::Numerics::Decimal128, System::Numerics::Decimal128>, System::Numerics::IAdditiveIdentity<System::Numerics::Decimal128, System::Numerics::Decimal128>, System::Numerics::IComparisonOperators<System::Numerics::Decimal128, System::Numerics::Decimal128, bool>, System::Numerics::IDecimalFloatingPointIeee754<System::Numerics::Decimal128>, System::Numerics::IDecrementOperators<System::Numerics::Decimal128>, System::Numerics::IDivisionOperators<System::Numerics::Decimal128, System::Numerics::Decimal128, System::Numerics::Decimal128>, System::Numerics::IEqualityOperators<System::Numerics::Decimal128, System::Numerics::Decimal128, bool>, System::Numerics::IExponentialFunctions<System::Numerics::Decimal128>, System::Numerics::IFloatingPoint<System::Numerics::Decimal128>, System::Numerics::IFloatingPointConstants<System::Numerics::Decimal128>, System::Numerics::IFloatingPointIeee754<System::Numerics::Decimal128>, System::Numerics::IHyperbolicFunctions<System::Numerics::Decimal128>, System::Numerics::IIncrementOperators<System::Numerics::Decimal128>, System::Numerics::ILogarithmicFunctions<System::Numerics::Decimal128>, System::Numerics::IMinMaxValue<System::Numerics::Decimal128>, System::Numerics::IModulusOperators<System::Numerics::Decimal128, System::Numerics::Decimal128, System::Numerics::Decimal128>, System::Numerics::IMultiplicativeIdentity<System::Numerics::Decimal128, System::Numerics::Decimal128>, System::Numerics::IMultiplyOperators<System::Numerics::Decimal128, System::Numerics::Decimal128, System::Numerics::Decimal128>, System::Numerics::INumber<System::Numerics::Decimal128>, System::Numerics::INumberBase<System::Numerics::Decimal128>, System::Numerics::IPowerFunctions<System::Numerics::Decimal128>, System::Numerics::IRootFunctions<System::Numerics::Decimal128>, System::Numerics::ISignedNumber<System::Numerics::Decimal128>, System::Numerics::ISubtractionOperators<System::Numerics::Decimal128, System::Numerics::Decimal128, System::Numerics::Decimal128>, System::Numerics::ITrigonometricFunctions<System::Numerics::Decimal128>, System::Numerics::IUnaryNegationOperators<System::Numerics::Decimal128, System::Numerics::Decimal128>, System::Numerics::IUnaryPlusOperators<System::Numerics::Decimal128, System::Numerics::Decimal128>
public readonly struct Decimal128 : IComparable<System.Numerics.Decimal128>, IEquatable<System.Numerics.Decimal128>, IParsable<System.Numerics.Decimal128>, ISpanParsable<System.Numerics.Decimal128>, IUtf8SpanParsable<System.Numerics.Decimal128>, System.Numerics.IAdditionOperators<System.Numerics.Decimal128,System.Numerics.Decimal128,System.Numerics.Decimal128>, System.Numerics.IAdditiveIdentity<System.Numerics.Decimal128,System.Numerics.Decimal128>, System.Numerics.IComparisonOperators<System.Numerics.Decimal128,System.Numerics.Decimal128,bool>, System.Numerics.IDecimalFloatingPointIeee754<System.Numerics.Decimal128>, System.Numerics.IDecrementOperators<System.Numerics.Decimal128>, System.Numerics.IDivisionOperators<System.Numerics.Decimal128,System.Numerics.Decimal128,System.Numerics.Decimal128>, System.Numerics.IEqualityOperators<System.Numerics.Decimal128,System.Numerics.Decimal128,bool>, System.Numerics.IExponentialFunctions<System.Numerics.Decimal128>, System.Numerics.IFloatingPoint<System.Numerics.Decimal128>, System.Numerics.IFloatingPointConstants<System.Numerics.Decimal128>, System.Numerics.IFloatingPointIeee754<System.Numerics.Decimal128>, System.Numerics.IHyperbolicFunctions<System.Numerics.Decimal128>, System.Numerics.IIncrementOperators<System.Numerics.Decimal128>, System.Numerics.ILogarithmicFunctions<System.Numerics.Decimal128>, System.Numerics.IMinMaxValue<System.Numerics.Decimal128>, System.Numerics.IModulusOperators<System.Numerics.Decimal128,System.Numerics.Decimal128,System.Numerics.Decimal128>, System.Numerics.IMultiplicativeIdentity<System.Numerics.Decimal128,System.Numerics.Decimal128>, System.Numerics.IMultiplyOperators<System.Numerics.Decimal128,System.Numerics.Decimal128,System.Numerics.Decimal128>, System.Numerics.INumber<System.Numerics.Decimal128>, System.Numerics.INumberBase<System.Numerics.Decimal128>, System.Numerics.IPowerFunctions<System.Numerics.Decimal128>, System.Numerics.IRootFunctions<System.Numerics.Decimal128>, System.Numerics.ISignedNumber<System.Numerics.Decimal128>, System.Numerics.ISubtractionOperators<System.Numerics.Decimal128,System.Numerics.Decimal128,System.Numerics.Decimal128>, System.Numerics.ITrigonometricFunctions<System.Numerics.Decimal128>, System.Numerics.IUnaryNegationOperators<System.Numerics.Decimal128,System.Numerics.Decimal128>, System.Numerics.IUnaryPlusOperators<System.Numerics.Decimal128,System.Numerics.Decimal128>
type Decimal128 = struct
    interface IFormattable
    interface IParsable<Decimal128>
    interface ISpanFormattable
    interface ISpanParsable<Decimal128>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<Decimal128>
    interface IAdditionOperators<Decimal128, Decimal128, Decimal128>
    interface IAdditiveIdentity<Decimal128, Decimal128>
    interface IComparisonOperators<Decimal128, Decimal128, bool>
    interface IEqualityOperators<Decimal128, Decimal128, bool>
    interface IDecimalFloatingPointIeee754<Decimal128>
    interface IDecrementOperators<Decimal128>
    interface IDivisionOperators<Decimal128, Decimal128, Decimal128>
    interface IExponentialFunctions<Decimal128>
    interface IFloatingPointConstants<Decimal128>
    interface IIncrementOperators<Decimal128>
    interface IMultiplicativeIdentity<Decimal128, Decimal128>
    interface IMultiplyOperators<Decimal128, Decimal128, Decimal128>
    interface INumberBase<Decimal128>
    interface ISubtractionOperators<Decimal128, Decimal128, Decimal128>
    interface IUnaryNegationOperators<Decimal128, Decimal128>
    interface IUnaryPlusOperators<Decimal128, Decimal128>
    interface IFloatingPoint<Decimal128>
    interface IModulusOperators<Decimal128, Decimal128, Decimal128>
    interface INumber<Decimal128>
    interface ISignedNumber<Decimal128>
    interface IFloatingPointIeee754<Decimal128>
    interface IHyperbolicFunctions<Decimal128>
    interface ILogarithmicFunctions<Decimal128>
    interface IPowerFunctions<Decimal128>
    interface IRootFunctions<Decimal128>
    interface ITrigonometricFunctions<Decimal128>
    interface IMinMaxValue<Decimal128>
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<TSelf> IEquatable<Decimal128> IEquatable<TSelf> IFormattable IParsable<Decimal128> IParsable<TSelf> ISpanFormattable ISpanParsable<Decimal128> ISpanParsable<TSelf> IUtf8SpanFormattable IUtf8SpanParsable<Decimal128> IUtf8SpanParsable<TSelf> IAdditionOperators<Decimal128,Decimal128,Decimal128> IAdditionOperators<TSelf,TSelf,TSelf> IAdditiveIdentity<Decimal128,Decimal128> IAdditiveIdentity<TSelf,TSelf> IComparisonOperators<Decimal128,Decimal128,Boolean> IComparisonOperators<TSelf,TSelf,Boolean> IDecimalFloatingPointIeee754<Decimal128> IDecrementOperators<Decimal128> IDecrementOperators<TSelf> IDivisionOperators<Decimal128,Decimal128,Decimal128> IDivisionOperators<TSelf,TSelf,TSelf> IEqualityOperators<Decimal128,Decimal128,Boolean> IEqualityOperators<TSelf,TOther,TResult> IEqualityOperators<TSelf,TSelf,Boolean> IExponentialFunctions<Decimal128> IExponentialFunctions<TSelf> IFloatingPoint<Decimal128> IFloatingPoint<TSelf> IFloatingPointConstants<Decimal128> IFloatingPointConstants<TSelf> IFloatingPointIeee754<Decimal128> IFloatingPointIeee754<TSelf> IHyperbolicFunctions<Decimal128> IHyperbolicFunctions<TSelf> IIncrementOperators<Decimal128> IIncrementOperators<TSelf> ILogarithmicFunctions<Decimal128> ILogarithmicFunctions<TSelf> IMinMaxValue<Decimal128> IModulusOperators<Decimal128,Decimal128,Decimal128> IModulusOperators<TSelf,TSelf,TSelf> IMultiplicativeIdentity<Decimal128,Decimal128> IMultiplicativeIdentity<TSelf,TSelf> IMultiplyOperators<Decimal128,Decimal128,Decimal128> IMultiplyOperators<TSelf,TSelf,TSelf> INumber<Decimal128> INumber<TSelf> INumberBase<Decimal128> INumberBase<TSelf> IPowerFunctions<Decimal128> IPowerFunctions<TSelf> IRootFunctions<Decimal128> IRootFunctions<TSelf> ISignedNumber<Decimal128> ISignedNumber<TSelf> ISubtractionOperators<Decimal128,Decimal128,Decimal128> ISubtractionOperators<TSelf,TSelf,TSelf> ITrigonometricFunctions<Decimal128> ITrigonometricFunctions<TSelf> IUnaryNegationOperators<Decimal128,Decimal128> IUnaryNegationOperators<TSelf,TSelf> IUnaryPlusOperators<Decimal128,Decimal128> IUnaryPlusOperators<TSelf,TSelf>

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<TInteger>(Decimal128)
ConvertToIntegerNative<TInteger>(Decimal128)
CopySign(Decimal128, Decimal128)
Cos(Decimal128)
Cosh(Decimal128)
CosPi(Decimal128)
CreateChecked<TOther>(TOther)
CreateSaturating<TOther>(TOther)
CreateTruncating<TOther>(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<Byte>, IFormatProvider)
Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)
Parse(ReadOnlySpan<Char>, IFormatProvider)
Parse(ReadOnlySpan<Char>, 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<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider)
TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)
TryParse(ReadOnlySpan<Byte>, Decimal128)
TryParse(ReadOnlySpan<Byte>, IFormatProvider, Decimal128)
TryParse(ReadOnlySpan<Char>, Decimal128)
TryParse(ReadOnlySpan<Char>, IFormatProvider, Decimal128)
TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, Decimal128)
TryParse(String, Decimal128)
TryParse(String, IFormatProvider, Decimal128)
TryParse(String, NumberStyles, IFormatProvider, Decimal128)
TryParsePartial(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, Decimal128, Int32)
TryParsePartial(ReadOnlySpan<Char>, 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<Decimal128,Decimal128>.AdditiveIdentity
IFloatingPoint<Decimal128>.GetExponentByteCount()
IFloatingPoint<Decimal128>.GetExponentShortestBitLength()
IFloatingPoint<Decimal128>.GetSignificandBitLength()
IFloatingPoint<Decimal128>.GetSignificandByteCount()
IFloatingPoint<Decimal128>.TryWriteExponentBigEndian(Span<Byte>, Int32)
IFloatingPoint<Decimal128>.TryWriteExponentLittleEndian(Span<Byte>, Int32)
IFloatingPoint<Decimal128>.TryWriteSignificandBigEndian(Span<Byte>, Int32)
IFloatingPoint<Decimal128>.TryWriteSignificandLittleEndian(Span<Byte>, Int32)
IMultiplicativeIdentity<Decimal128,Decimal128>.MultiplicativeIdentity
INumberBase<Decimal128>.IsCanonical(Decimal128)
INumberBase<Decimal128>.IsComplexNumber(Decimal128)
INumberBase<Decimal128>.IsImaginaryNumber(Decimal128)
INumberBase<Decimal128>.IsZero(Decimal128)
INumberBase<Decimal128>.Radix
INumberBase<Decimal128>.TryConvertFromChecked<TOther>(TOther, Decimal128)
INumberBase<Decimal128>.TryConvertFromSaturating<TOther>(TOther, Decimal128)
INumberBase<Decimal128>.TryConvertFromTruncating<TOther>(TOther, Decimal128)
INumberBase<Decimal128>.TryConvertToChecked<TOther>(Decimal128, TOther)
INumberBase<Decimal128>.TryConvertToSaturating<TOther>(Decimal128, TOther)
INumberBase<Decimal128>.TryConvertToTruncating<TOther>(Decimal128, TOther)

Applies to