119 instantiations of Decimal32
System.Private.CoreLib (119)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (119)
77public static Decimal32 PositiveInfinity => new Decimal32(PositiveInfinityValue); 80public static Decimal32 NegativeInfinity => new Decimal32(NegativeInfinityValue); 83public static Decimal32 NaN => new Decimal32(QuietNaNValue); 86public static Decimal32 NegativeZero => new Decimal32(NegativeZeroValue); 89public static Decimal32 Zero => new Decimal32(ZeroValue); 92public static Decimal32 MinValue => new Decimal32(MinInternalValue); 95public static Decimal32 MaxValue => new Decimal32(MaxInternalValue); 98public static Decimal32 Epsilon => new Decimal32(0x0000_0001); // Smallest positive subnormal value, aka 1 * 10^-101 276public static Decimal32 DecodeBinary(uint x) => new Decimal32(x); 288public static Decimal32 DecodeDecimal(uint x) => new Decimal32(Number.DecodeDecimalIeee754<Decimal32, uint>(x)); 342public static Decimal32 operator -(Decimal32 value) => new Decimal32(value._value ^ SignMask); 349return new Decimal32(Number.AddDecimalIeee754<Decimal32, uint>(value._value, OneValue)); 357return new Decimal32(Number.SubtractDecimalIeee754<Decimal32, uint>(value._value, OneValue)); 366return new Decimal32(Number.AddDecimalIeee754<Decimal32, uint>(left._value, right._value)); 375return new Decimal32(Number.SubtractDecimalIeee754<Decimal32, uint>(left._value, right._value)); 384return new Decimal32(Number.MultiplyDecimalIeee754<Decimal32, uint>(left._value, right._value)); 393return new Decimal32(Number.DivideDecimalIeee754<Decimal32, uint>(left._value, right._value)); 402return new Decimal32(Number.RemainderDecimalIeee754<Decimal32, uint>(left._value, right._value)); 412public static explicit operator Decimal32(int value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, int>(value)); 418public static explicit operator Decimal32(uint value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, uint>(value)); 423public static explicit operator Decimal32(nint value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, nint>(value)); 429public static explicit operator Decimal32(nuint value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, nuint>(value)); 434public static explicit operator Decimal32(long value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, long>(value)); 440public static explicit operator Decimal32(ulong value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, ulong>(value)); 445public static explicit operator Decimal32(Int128 value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, Int128>(value)); 451public static explicit operator Decimal32(UInt128 value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, UInt128>(value)); 456public static explicit operator Decimal32(Half value) => new Decimal32(Number.ConvertFloatToDecimalIeee754<Half, Decimal32, uint>(value)); 461public static explicit operator Decimal32(float value) => new Decimal32(Number.ConvertFloatToDecimalIeee754<float, Decimal32, uint>(value)); 466public static explicit operator Decimal32(double value) => new Decimal32(Number.ConvertFloatToDecimalIeee754<double, Decimal32, uint>(value)); 471public static explicit operator Decimal32(Decimal64 value) => new Decimal32(Number.ConvertDecimalIeee754<Decimal64, ulong, Decimal32, uint>(value._value)); 476public static explicit operator Decimal32(Decimal128 value) => new Decimal32(Number.ConvertDecimalIeee754<Decimal128, UInt128, Decimal32, uint>(new UInt128(value._upper, value._lower))); 481public static explicit operator Decimal32(decimal value) => new Decimal32(Number.ConvertDecimalToDecimalIeee754<Decimal32, uint>(value)); 670public static implicit operator Decimal32(byte value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, byte>(value)); 676public static implicit operator Decimal32(sbyte value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, sbyte>(value)); 681public static implicit operator Decimal32(char value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, ushort>(value)); 686public static implicit operator Decimal32(short value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, short>(value)); 692public static implicit operator Decimal32(ushort value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, ushort>(value)); 809public static Decimal32 One => new Decimal32(OneValue); 812public static Decimal32 NegativeOne => new Decimal32(NegativeOneValue); 815public static Decimal32 E => new Decimal32(EValue); 818public static Decimal32 Pi => new Decimal32(PiValue); 821public static Decimal32 Tau => new Decimal32(TauValue); 828public static Decimal32 Ceiling(Decimal32 x) => new Decimal32(Number.RoundDecimalIeee754<Decimal32, uint>(x._value, 0, MidpointRounding.ToPositiveInfinity)); 839public static Decimal32 Floor(Decimal32 x) => new Decimal32(Number.RoundDecimalIeee754<Decimal32, uint>(x._value, 0, MidpointRounding.ToNegativeInfinity)); 842public static Decimal32 Round(Decimal32 x) => new Decimal32(Number.RoundDecimalIeee754<Decimal32, uint>(x._value, 0, MidpointRounding.ToEven)); 845public static Decimal32 Round(Decimal32 x, int digits) => new Decimal32(Number.RoundDecimalIeee754<Decimal32, uint>(x._value, digits, MidpointRounding.ToEven)); 848public static Decimal32 Round(Decimal32 x, MidpointRounding mode) => new Decimal32(Number.RoundDecimalIeee754<Decimal32, uint>(x._value, 0, mode)); 851public static Decimal32 Round(Decimal32 x, int digits, MidpointRounding mode) => new Decimal32(Number.RoundDecimalIeee754<Decimal32, uint>(x._value, digits, mode)); 854public static Decimal32 Truncate(Decimal32 x) => new Decimal32(Number.RoundDecimalIeee754<Decimal32, uint>(x._value, 0, MidpointRounding.ToZero)); 937public static Decimal32 Acos(Decimal32 x) => new Decimal32(Number.AcosDecimalIeee754<Decimal32, uint>(x._value)); 940public static Decimal32 AcosPi(Decimal32 x) => new Decimal32(Number.AcosPiDecimalIeee754<Decimal32, uint>(x._value)); 943public static Decimal32 Acosh(Decimal32 x) => new Decimal32(Number.AcoshDecimalIeee754<Decimal32, uint>(x._value)); 946public static Decimal32 Asin(Decimal32 x) => new Decimal32(Number.AsinDecimalIeee754<Decimal32, uint>(x._value)); 949public static Decimal32 AsinPi(Decimal32 x) => new Decimal32(Number.AsinPiDecimalIeee754<Decimal32, uint>(x._value)); 952public static Decimal32 Asinh(Decimal32 x) => new Decimal32(Number.AsinhDecimalIeee754<Decimal32, uint>(x._value)); 955public static Decimal32 Atan(Decimal32 x) => new Decimal32(Number.AtanDecimalIeee754<Decimal32, uint>(x._value)); 958public static Decimal32 Atan2(Decimal32 y, Decimal32 x) => new Decimal32(Number.Atan2DecimalIeee754<Decimal32, uint>(y._value, x._value)); 961public static Decimal32 Atan2Pi(Decimal32 y, Decimal32 x) => new Decimal32(Number.Atan2PiDecimalIeee754<Decimal32, uint>(y._value, x._value)); 964public static Decimal32 AtanPi(Decimal32 x) => new Decimal32(Number.AtanPiDecimalIeee754<Decimal32, uint>(x._value)); 967public static Decimal32 Atanh(Decimal32 x) => new Decimal32(Number.AtanhDecimalIeee754<Decimal32, uint>(x._value)); 970public static Decimal32 BitDecrement(Decimal32 x) => new Decimal32(Number.BitDecrementDecimalIeee754<Decimal32, uint>(x._value)); 973public static Decimal32 BitIncrement(Decimal32 x) => new Decimal32(Number.BitIncrementDecimalIeee754<Decimal32, uint>(x._value)); 976public static Decimal32 Cbrt(Decimal32 x) => new Decimal32(Number.CbrtDecimalIeee754<Decimal32, uint>(x._value)); 979public static Decimal32 Cos(Decimal32 x) => new Decimal32(Number.CosDecimalIeee754<Decimal32, uint>(x._value)); 982public static Decimal32 CosPi(Decimal32 x) => new Decimal32(Number.CosPiDecimalIeee754<Decimal32, uint>(x._value)); 985public static Decimal32 Cosh(Decimal32 x) => new Decimal32(Number.CoshDecimalIeee754<Decimal32, uint>(x._value)); 988public static Decimal32 DegreesToRadians(Decimal32 degrees) => new Decimal32(Number.MultiplyByWideConstantDecimalIeee754<Decimal32, uint>(degrees._value, DegreesToRadiansHead, DegreesToRadiansTail, DegreesToRadiansExponent)); 991public static Decimal32 Exp(Decimal32 x) => new Decimal32(Number.ExpDecimalIeee754<Decimal32, uint>(x._value)); 994public static Decimal32 Exp10(Decimal32 x) => new Decimal32(Number.Exp10DecimalIeee754<Decimal32, uint>(x._value)); 997public static Decimal32 Exp10M1(Decimal32 x) => new Decimal32(Number.Exp10M1DecimalIeee754<Decimal32, uint>(x._value)); 1000public static Decimal32 Exp2(Decimal32 x) => new Decimal32(Number.Exp2DecimalIeee754<Decimal32, uint>(x._value)); 1003public static Decimal32 Exp2M1(Decimal32 x) => new Decimal32(Number.Exp2M1DecimalIeee754<Decimal32, uint>(x._value)); 1006public static Decimal32 ExpM1(Decimal32 x) => new Decimal32(Number.ExpM1DecimalIeee754<Decimal32, uint>(x._value)); 1009public static Decimal32 FusedMultiplyAdd(Decimal32 left, Decimal32 right, Decimal32 addend) => new Decimal32(Number.FusedMultiplyAddDecimalIeee754<Decimal32, uint>(left._value, right._value, addend._value)); 1012public static Decimal32 Hypot(Decimal32 x, Decimal32 y) => new Decimal32(Number.HypotDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1015public static Decimal32 Ieee754Remainder(Decimal32 left, Decimal32 right) => new Decimal32(Number.Ieee754RemainderDecimalIeee754<Decimal32, uint>(left._value, right._value)); 1024public static Decimal32 Log(Decimal32 x) => new Decimal32(Number.LogDecimalIeee754<Decimal32, uint>(x._value)); 1027public static Decimal32 Log(Decimal32 x, Decimal32 newBase) => new Decimal32(Number.LogDecimalIeee754<Decimal32, uint>(x._value, newBase._value)); 1030public static Decimal32 Log10(Decimal32 x) => new Decimal32(Number.Log10DecimalIeee754<Decimal32, uint>(x._value)); 1033public static Decimal32 Log10P1(Decimal32 x) => new Decimal32(Number.Log10P1DecimalIeee754<Decimal32, uint>(x._value)); 1036public static Decimal32 Log2(Decimal32 x) => new Decimal32(Number.Log2DecimalIeee754<Decimal32, uint>(x._value)); 1039public static Decimal32 Log2P1(Decimal32 x) => new Decimal32(Number.Log2P1DecimalIeee754<Decimal32, uint>(x._value)); 1042public static Decimal32 LogP1(Decimal32 x) => new Decimal32(Number.LogP1DecimalIeee754<Decimal32, uint>(x._value)); 1045public static Decimal32 Pow(Decimal32 x, Decimal32 y) => new Decimal32(Number.PowDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1048public static Decimal32 RadiansToDegrees(Decimal32 radians) => new Decimal32(Number.MultiplyByWideConstantDecimalIeee754<Decimal32, uint>(radians._value, RadiansToDegreesHead, RadiansToDegreesTail, RadiansToDegreesExponent)); 1057public static Decimal32 RootN(Decimal32 x, int n) => new Decimal32(Number.RootNDecimalIeee754<Decimal32, uint>(x._value, n)); 1060public static Decimal32 ScaleB(Decimal32 x, int n) => new Decimal32(Number.ScaleBDecimalIeee754<Decimal32, uint>(x._value, n)); 1063public static Decimal32 Sin(Decimal32 x) => new Decimal32(Number.SinDecimalIeee754<Decimal32, uint>(x._value)); 1069return (new Decimal32(sin), new Decimal32(cos)); 1076return (new Decimal32(sin), new Decimal32(cos)); 1080public static Decimal32 SinPi(Decimal32 x) => new Decimal32(Number.SinPiDecimalIeee754<Decimal32, uint>(x._value)); 1083public static Decimal32 Sinh(Decimal32 x) => new Decimal32(Number.SinhDecimalIeee754<Decimal32, uint>(x._value)); 1086public static Decimal32 Sqrt(Decimal32 x) => new Decimal32(Number.SqrtDecimalIeee754<Decimal32, uint>(x._value)); 1089public static Decimal32 Tan(Decimal32 x) => new Decimal32(Number.TanDecimalIeee754<Decimal32, uint>(x._value)); 1092public static Decimal32 TanPi(Decimal32 x) => new Decimal32(Number.TanPiDecimalIeee754<Decimal32, uint>(x._value)); 1095public static Decimal32 Tanh(Decimal32 x) => new Decimal32(Number.TanhDecimalIeee754<Decimal32, uint>(x._value)); 1101public static Decimal32 Quantize(Decimal32 x, Decimal32 y) => new Decimal32(Number.QuantizeDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1106public static Decimal32 GetQuantum(Decimal32 x) => new Decimal32(Number.QuantumDecimalIeee754<Decimal32, uint>(x._value)); 1117public static Decimal32 Abs(Decimal32 value) => new Decimal32(Number.AbsDecimalIeee754<Decimal32, uint>(value._value)); 1188public static Decimal32 MaxMagnitude(Decimal32 x, Decimal32 y) => new Decimal32(Number.MaxMagnitudeDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1194public static Decimal32 MaxMagnitudeNumber(Decimal32 x, Decimal32 y) => new Decimal32(Number.MaxMagnitudeNumberDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1200public static Decimal32 MinMagnitude(Decimal32 x, Decimal32 y) => new Decimal32(Number.MinMagnitudeDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1206public static Decimal32 MinMagnitudeNumber(Decimal32 x, Decimal32 y) => new Decimal32(Number.MinMagnitudeNumberDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1249public static Decimal32 CopySign(Decimal32 value, Decimal32 sign) => new Decimal32(Number.CopySignDecimalIeee754<Decimal32, uint>(value._value, sign._value)); 1255public static Decimal32 Max(Decimal32 x, Decimal32 y) => new Decimal32(Number.MaxDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1261public static Decimal32 MaxNative(Decimal32 x, Decimal32 y) => new Decimal32(Number.MaxNativeDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1267public static Decimal32 MaxNumber(Decimal32 x, Decimal32 y) => new Decimal32(Number.MaxNumberDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1273public static Decimal32 Min(Decimal32 x, Decimal32 y) => new Decimal32(Number.MinDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1279public static Decimal32 MinNative(Decimal32 x, Decimal32 y) => new Decimal32(Number.MinNativeDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1285public static Decimal32 MinNumber(Decimal32 x, Decimal32 y) => new Decimal32(Number.MinNumberDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1758static Decimal32 IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.Construct(uint value) => new Decimal32(value); 1813static bool IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.IsNaN(uint decimalBits) => IsNaN(new Decimal32(decimalBits)); 1815static bool IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.IsNegative(uint decimalBits) => IsNegative(new Decimal32(decimalBits)); 1817static bool IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.IsFinite(uint decimalBits) => IsFinite(new Decimal32(decimalBits)); 1819static bool IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.IsInfinity(uint decimalBits) => IsInfinity(new Decimal32(decimalBits)); 1821static bool IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.IsPositiveInfinity(uint decimalBits) => IsPositiveInfinity(new Decimal32(decimalBits)); 1823static bool IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.IsNegativeInfinity(uint decimalBits) => IsNegativeInfinity(new Decimal32(decimalBits));
719 references to Decimal32
System.Private.CoreLib (712)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (6)
1465else if (typeof(TOther) == typeof(Decimal32)) 1467result = (Decimal32)(object)value; 1588else if (typeof(TOther) == typeof(Decimal32)) 1590result = (TOther)(object)(Decimal32)value; 1710else if (typeof(TOther) == typeof(Decimal32)) 1712result = (TOther)(object)(Decimal32)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (696)
21IComparable<Decimal32>, 22IEquatable<Decimal32>, 23IDecimalFloatingPointIeee754<Decimal32>, 25ISpanParsable<Decimal32>, 26IMinMaxValue<Decimal32>, 28IUtf8SpanParsable<Decimal32>, 29IDecimalIeee754ParseAndFormatInfo<Decimal32, uint> 77public static Decimal32 PositiveInfinity => new Decimal32(PositiveInfinityValue); 80public static Decimal32 NegativeInfinity => new Decimal32(NegativeInfinityValue); 83public static Decimal32 NaN => new Decimal32(QuietNaNValue); 86public static Decimal32 NegativeZero => new Decimal32(NegativeZeroValue); 89public static Decimal32 Zero => new Decimal32(ZeroValue); 92public static Decimal32 MinValue => new Decimal32(MinInternalValue); 95public static Decimal32 MaxValue => new Decimal32(MaxInternalValue); 98public static Decimal32 Epsilon => new Decimal32(0x0000_0001); // Smallest positive subnormal value, aka 1 * 10^-101 112/// Parses a <see cref="Decimal32"/> from a <see cref="string"/> in the default parse style. 115/// <returns>The equivalent <see cref="Decimal32"/> value representing the input string. If the input exceeds Decimal32's range, a <see cref="PositiveInfinity"/> or <see cref="NegativeInfinity"/> is returned. </returns> 116public static Decimal32 Parse(string s) => Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null); 119/// Parses a <see cref="Decimal32"/> from a <see cref="string"/> in the given <see cref="NumberStyles"/>. 123/// <returns>The equivalent <see cref="Decimal32"/> value representing the input string. If the input exceeds Decimal32's range, a <see cref="PositiveInfinity"/> or <see cref="NegativeInfinity"/> is returned. </returns> 124public static Decimal32 Parse(string s, NumberStyles style) => Parse(s, style, provider: null); 127public static Decimal32 Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider); 130/// Parses a <see cref="Decimal32"/> from a <see cref="string"/> and <see cref="IFormatProvider"/>. 134/// <returns>The equivalent <see cref="Decimal32"/> value representing the input string. If the input exceeds Decimal32's range, a <see cref="PositiveInfinity"/> or <see cref="NegativeInfinity"/> is returned. </returns> 135public static Decimal32 Parse(string s, IFormatProvider? provider) => Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider); 138/// Parses a <see cref="Decimal32"/> from a <see cref="ReadOnlySpan{Char}"/> and <see cref="IFormatProvider"/>. 143/// <returns>The equivalent <see cref="Decimal32"/> value representing the input string. If the input exceeds Decimal32's range, a <see cref="PositiveInfinity"/> or <see cref="NegativeInfinity"/> is returned. </returns> 144public static Decimal32 Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 147return Number.ParseDecimalIeee754<char, Decimal32, uint>(s, style, NumberFormatInfo.GetInstance(provider)); 151/// Parses a <see cref="Decimal32"/> from a <see cref="string"/> with the given <see cref="NumberStyles"/> and <see cref="IFormatProvider"/>. 156/// <returns>The equivalent <see cref="Decimal32"/> value representing the input string. If the input exceeds Decimal32's range, a <see cref="PositiveInfinity"/> or <see cref="NegativeInfinity"/> is returned. </returns> 157public static Decimal32 Parse(string s, NumberStyles style, IFormatProvider? provider) 167/// Tries to parse a <see cref="Decimal32"/> from a <see cref="string"/> in the default parse style. 170/// <param name="result">The equivalent <see cref="Decimal32"/> value representing the input string if the parse was successful. If the input exceeds Decimal32's range, a <see cref="PositiveInfinity"/> or <see cref="NegativeInfinity"/> is returned. If the parse was unsuccessful, a default <see cref="Decimal32"/> value is returned.</param> 172public static bool TryParse([NotNullWhen(true)] string? s, out Decimal32 result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 175/// Tries to parse a <see cref="Decimal32"/> from a <see cref="ReadOnlySpan{Char}"/> in the default parse style. 178/// <param name="result">The equivalent <see cref="Decimal32"/> value representing the input string if the parse was successful. If the input exceeds Decimal32's range, a <see cref="PositiveInfinity"/> or <see cref="NegativeInfinity"/> is returned. If the parse was unsuccessful, a default <see cref="Decimal32"/> value is returned.</param> 180public static bool TryParse(ReadOnlySpan<char> s, out Decimal32 result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 183public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, [MaybeNullWhen(false)] out Decimal32 result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result); 186/// Tries to parse a <see cref="Decimal32"/> from a <see cref="string"/> with the given <see cref="IFormatProvider"/>. 190/// <param name="result">The equivalent <see cref="Decimal32"/> value representing the input string if the parse was successful. If the input exceeds Decimal32's range, a <see cref="PositiveInfinity"/> or <see cref="NegativeInfinity"/> is returned. If the parse was unsuccessful, a default <see cref="Decimal32"/> value is returned.</param> 192public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, [MaybeNullWhen(false)] out Decimal32 result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result); 195/// Tries to parse a <see cref="Decimal32"/> from a <see cref="ReadOnlySpan{Char}"/> with the given <see cref="NumberStyles"/> and <see cref="IFormatProvider"/>. 200/// <param name="result">The equivalent <see cref="Decimal32"/> value representing the input string if the parse was successful. If the input exceeds Decimal32's range, a <see cref="PositiveInfinity"/> or <see cref="NegativeInfinity"/> is returned. If the parse was unsuccessful, a default <see cref="Decimal32"/> value is returned.</param> 202public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, [MaybeNullWhen(false)] out Decimal32 result) 205return Number.TryParseDecimalIeee754<char, Decimal32, uint>(s, style, NumberFormatInfo.GetInstance(provider), out result, out _) == Number.ParsingStatus.OK; 209/// Tries to parse a <see cref="Decimal32"/> from a <see cref="string"/> with the given <see cref="NumberStyles"/> and <see cref="IFormatProvider"/>. 214/// <param name="result">The equivalent <see cref="Decimal32"/> value representing the input string if the parse was successful. If the input exceeds Decimal32's range, a <see cref="PositiveInfinity"/> or <see cref="NegativeInfinity"/> is returned. If the parse was unsuccessful, a default <see cref="Decimal32"/> value is returned.</param> 216public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, [MaybeNullWhen(false)] out Decimal32 result) 219return Number.TryParseDecimalIeee754<char, Decimal32, uint>(s.AsSpan(), style, NumberFormatInfo.GetInstance(provider), out result, out _) == Number.ParsingStatus.OK; 230if (value is not Decimal32 i) 235return Number.CompareDecimalIeee754<Decimal32, uint>(_value, i._value); 239public int CompareTo(Decimal32 other) 241return Number.CompareDecimalIeee754<Decimal32, uint>(_value, other._value); 245public bool Equals(Decimal32 other) 247return Number.CompareDecimalIeee754<Decimal32, uint>(_value, other._value) == 0; 255return obj is Decimal32 other && Equals(other); 263return Number.GetDecimalIeee754HashCode<Decimal32, uint>(_value); 270public static uint EncodeBinary(Decimal32 x) => x._value; 276public static Decimal32 DecodeBinary(uint x) => new Decimal32(x); 282public static uint EncodeDecimal(Decimal32 x) => Number.EncodeDecimalIeee754<Decimal32, uint>(x._value); 288public static Decimal32 DecodeDecimal(uint x) => new Decimal32(Number.DecodeDecimalIeee754<Decimal32, uint>(x)); 295return Number.FormatDecimalIeee754<Decimal32, uint>(_value, null, NumberFormatInfo.CurrentInfo); 303return Number.FormatDecimalIeee754<Decimal32, uint>(_value, format, NumberFormatInfo.CurrentInfo); 311return Number.FormatDecimalIeee754<Decimal32, uint>(_value, null, NumberFormatInfo.GetInstance(provider)); 319return Number.FormatDecimalIeee754<Decimal32, uint>(_value, format, NumberFormatInfo.GetInstance(provider)); 325return Number.TryFormatDecimalIeee754<Decimal32, uint, char>(_value, format, NumberFormatInfo.GetInstance(provider), destination, out charsWritten); 331return Number.TryFormatDecimalIeee754<Decimal32, uint, byte>(_value, format, NumberFormatInfo.GetInstance(provider), utf8Destination, out bytesWritten); 337public static Decimal32 operator +(Decimal32 value) => value; 342public static Decimal32 operator -(Decimal32 value) => new Decimal32(value._value ^ SignMask); 347public static Decimal32 operator ++(Decimal32 value) 349return new Decimal32(Number.AddDecimalIeee754<Decimal32, uint>(value._value, OneValue)); 355public static Decimal32 operator --(Decimal32 value) 357return new Decimal32(Number.SubtractDecimalIeee754<Decimal32, uint>(value._value, OneValue)); 364public static Decimal32 operator +(Decimal32 left, Decimal32 right) 366return new Decimal32(Number.AddDecimalIeee754<Decimal32, uint>(left._value, right._value)); 373public static Decimal32 operator -(Decimal32 left, Decimal32 right) 375return new Decimal32(Number.SubtractDecimalIeee754<Decimal32, uint>(left._value, right._value)); 382public static Decimal32 operator *(Decimal32 left, Decimal32 right) 384return new Decimal32(Number.MultiplyDecimalIeee754<Decimal32, uint>(left._value, right._value)); 391public static Decimal32 operator /(Decimal32 left, Decimal32 right) 393return new Decimal32(Number.DivideDecimalIeee754<Decimal32, uint>(left._value, right._value)); 400public static Decimal32 operator %(Decimal32 left, Decimal32 right) 402return new Decimal32(Number.RemainderDecimalIeee754<Decimal32, uint>(left._value, right._value)); 409/// <summary>Explicitly converts a <see cref="int" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 411/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 412public static explicit operator Decimal32(int value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, int>(value)); 414/// <summary>Explicitly converts a <see cref="uint" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 416/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 418public static explicit operator Decimal32(uint value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, uint>(value)); 420/// <summary>Explicitly converts a <see cref="System.IntPtr" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 422/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 423public static explicit operator Decimal32(nint value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, nint>(value)); 425/// <summary>Explicitly converts a <see cref="System.UIntPtr" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 427/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 429public static explicit operator Decimal32(nuint value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, nuint>(value)); 431/// <summary>Explicitly converts a <see cref="long" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 433/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 434public static explicit operator Decimal32(long value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, long>(value)); 436/// <summary>Explicitly converts a <see cref="ulong" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 438/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 440public static explicit operator Decimal32(ulong value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, ulong>(value)); 442/// <summary>Explicitly converts a <see cref="System.Int128" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 444/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 445public static explicit operator Decimal32(Int128 value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, Int128>(value)); 447/// <summary>Explicitly converts a <see cref="System.UInt128" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 449/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 451public static explicit operator Decimal32(UInt128 value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, UInt128>(value)); 453/// <summary>Explicitly converts a <see cref="System.Half" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 455/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 456public static explicit operator Decimal32(Half value) => new Decimal32(Number.ConvertFloatToDecimalIeee754<Half, Decimal32, uint>(value)); 458/// <summary>Explicitly converts a <see cref="float" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 460/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 461public static explicit operator Decimal32(float value) => new Decimal32(Number.ConvertFloatToDecimalIeee754<float, Decimal32, uint>(value)); 463/// <summary>Explicitly converts a <see cref="double" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 465/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 466public static explicit operator Decimal32(double value) => new Decimal32(Number.ConvertFloatToDecimalIeee754<double, Decimal32, uint>(value)); 468/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal64" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 470/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 471public static explicit operator Decimal32(Decimal64 value) => new Decimal32(Number.ConvertDecimalIeee754<Decimal64, ulong, Decimal32, uint>(value._value)); 473/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal128" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 475/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 476public static explicit operator Decimal32(Decimal128 value) => new Decimal32(Number.ConvertDecimalIeee754<Decimal128, UInt128, Decimal32, uint>(new UInt128(value._upper, value._lower))); 478/// <summary>Explicitly converts a <see cref="decimal" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 480/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 481public static explicit operator Decimal32(decimal value) => new Decimal32(Number.ConvertDecimalToDecimalIeee754<Decimal32, uint>(value)); 487/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="byte" /> value.</summary> 490public static explicit operator byte(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, byte>(value._value, isChecked: false); 492/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="byte" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 496public static explicit operator checked byte(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, byte>(value._value, isChecked: true); 498/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="sbyte" /> value.</summary> 502public static explicit operator sbyte(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, sbyte>(value._value, isChecked: false); 504/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="sbyte" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 509public static explicit operator checked sbyte(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, sbyte>(value._value, isChecked: true); 511/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="char" /> value.</summary> 514public static explicit operator char(Decimal32 value) => (char)Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, ushort>(value._value, isChecked: false); 516/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="char" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 520public static explicit operator checked char(Decimal32 value) => (char)Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, ushort>(value._value, isChecked: true); 522/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="short" /> value.</summary> 525public static explicit operator short(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, short>(value._value, isChecked: false); 527/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="short" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 531public static explicit operator checked short(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, short>(value._value, isChecked: true); 533/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="ushort" /> value.</summary> 537public static explicit operator ushort(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, ushort>(value._value, isChecked: false); 539/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="ushort" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 544public static explicit operator checked ushort(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, ushort>(value._value, isChecked: true); 546/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="int" /> value.</summary> 549public static explicit operator int(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, int>(value._value, isChecked: false); 551/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="int" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 555public static explicit operator checked int(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, int>(value._value, isChecked: true); 557/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="uint" /> value.</summary> 561public static explicit operator uint(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, uint>(value._value, isChecked: false); 563/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="uint" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 568public static explicit operator checked uint(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, uint>(value._value, isChecked: true); 570/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="System.IntPtr" /> value.</summary> 573public static explicit operator nint(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, nint>(value._value, isChecked: false); 575/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="System.IntPtr" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 579public static explicit operator checked nint(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, nint>(value._value, isChecked: true); 581/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="System.UIntPtr" /> value.</summary> 585public static explicit operator nuint(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, nuint>(value._value, isChecked: false); 587/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="System.UIntPtr" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 592public static explicit operator checked nuint(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, nuint>(value._value, isChecked: true); 594/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="long" /> value.</summary> 597public static explicit operator long(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, long>(value._value, isChecked: false); 599/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="long" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 603public static explicit operator checked long(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, long>(value._value, isChecked: true); 605/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="ulong" /> value.</summary> 609public static explicit operator ulong(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, ulong>(value._value, isChecked: false); 611/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="ulong" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 616public static explicit operator checked ulong(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, ulong>(value._value, isChecked: true); 618/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="System.Int128" /> value.</summary> 621public static explicit operator Int128(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, Int128>(value._value, isChecked: false); 623/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="System.Int128" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 627public static explicit operator checked Int128(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, Int128>(value._value, isChecked: true); 629/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="System.UInt128" /> value.</summary> 633public static explicit operator UInt128(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, UInt128>(value._value, isChecked: false); 635/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="System.UInt128" /> value, throwing an overflow exception for any values that fall outside the representable range.</summary> 640public static explicit operator checked UInt128(Decimal32 value) => Number.ConvertDecimalIeee754ToInteger<Decimal32, uint, UInt128>(value._value, isChecked: true); 642/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="System.Half" /> value.</summary> 645public static explicit operator Half(Decimal32 value) => Number.ConvertDecimalIeee754ToFloat<Decimal32, uint, Half>(value._value); 647/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="float" /> value.</summary> 650public static explicit operator float(Decimal32 value) => Number.ConvertDecimalIeee754ToFloat<Decimal32, uint, float>(value._value); 652/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="double" /> value.</summary> 655public static explicit operator double(Decimal32 value) => Number.ConvertDecimalIeee754ToFloat<Decimal32, uint, double>(value._value); 657/// <summary>Explicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="decimal" /> value.</summary> 661public static explicit operator decimal(Decimal32 value) => Number.ConvertDecimalIeee754ToDecimal<Decimal32, uint>(value._value); 667/// <summary>Implicitly converts a <see cref="byte" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 669/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 670public static implicit operator Decimal32(byte value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, byte>(value)); 672/// <summary>Implicitly converts a <see cref="sbyte" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 674/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 676public static implicit operator Decimal32(sbyte value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, sbyte>(value)); 678/// <summary>Implicitly converts a <see cref="char" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 680/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 681public static implicit operator Decimal32(char value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, ushort>(value)); 683/// <summary>Implicitly converts a <see cref="short" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 685/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 686public static implicit operator Decimal32(short value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, short>(value)); 688/// <summary>Implicitly converts a <see cref="ushort" /> value to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</summary> 690/// <returns><paramref name="value" /> converted to its nearest representable <see cref="System.Numerics.Decimal32" /> value.</returns> 692public static implicit operator Decimal32(ushort value) => new Decimal32(Number.ConvertIntegerToDecimalIeee754<Decimal32, uint, ushort>(value)); 698/// <summary>Implicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="System.Numerics.Decimal64" /> value.</summary> 701public static implicit operator Decimal64(Decimal32 value) => new Decimal64(Number.ConvertDecimalIeee754<Decimal32, uint, Decimal64, ulong>(value._value)); 703/// <summary>Implicitly converts a <see cref="System.Numerics.Decimal32" /> value to its nearest representable <see cref="System.Numerics.Decimal128" /> value.</summary> 706public static implicit operator Decimal128(Decimal32 value) => new Decimal128(Number.ConvertDecimalIeee754<Decimal32, uint, Decimal128, UInt128>(value._value)); 712public static bool operator ==(Decimal32 left, Decimal32 right) 714return Number.EqualsDecimalIeee754<Decimal32, uint>(left._value, right._value); 721public static bool operator !=(Decimal32 left, Decimal32 right) 730public static bool operator <(Decimal32 left, Decimal32 right) 732return Number.LessThanDecimalIeee754<Decimal32, uint>(left._value, right._value); 739public static bool operator >(Decimal32 left, Decimal32 right) 741return Number.GreaterThanDecimalIeee754<Decimal32, uint>(left._value, right._value); 748public static bool operator <=(Decimal32 left, Decimal32 right) 750return Number.LessThanOrEqualDecimalIeee754<Decimal32, uint>(left._value, right._value); 757public static bool operator >=(Decimal32 left, Decimal32 right) 759return Number.GreaterThanOrEqualDecimalIeee754<Decimal32, uint>(left._value, right._value); 767public static bool TryParsePartial([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out Decimal32 result, out int charsConsumed) 770return Number.TryParseDecimalIeee754<char, Decimal32, uint>(s.AsSpan(), style | Number.AllowTrailingInvalidCharacters, NumberFormatInfo.GetInstance(provider), out result, out charsConsumed) == Number.ParsingStatus.OK; 774public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Decimal32 result, out int charsConsumed) 777return Number.TryParseDecimalIeee754<char, Decimal32, uint>(s, style | Number.AllowTrailingInvalidCharacters, NumberFormatInfo.GetInstance(provider), out result, out charsConsumed) == Number.ParsingStatus.OK; 781public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Decimal32 result, out int bytesConsumed) 784return Number.TryParseDecimalIeee754<byte, Decimal32, uint>(utf8Text, style | Number.AllowTrailingInvalidCharacters, NumberFormatInfo.GetInstance(provider), out result, out bytesConsumed) == Number.ParsingStatus.OK; 788/// Tries to parse a <see cref="Decimal32"/> from a <see cref="ReadOnlySpan{Byte}"/> containing UTF-8 text in the default parse style. 791/// <param name="result">The equivalent <see cref="Decimal32"/> value representing the input if the parse was successful. If the input exceeds Decimal32's range, a <see cref="PositiveInfinity"/> or <see cref="NegativeInfinity"/> is returned. If the parse was unsuccessful, a default <see cref="Decimal32"/> value is returned.</param> 793public static bool TryParse(ReadOnlySpan<byte> utf8Text, out Decimal32 result) => TryParse(utf8Text, provider: null, out result); 796public static Decimal32 Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 799return Number.ParseDecimalIeee754<byte, Decimal32, uint>(utf8Text, style, NumberFormatInfo.GetInstance(provider)); 803public static Decimal32 Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider); 806public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [MaybeNullWhen(false)] out Decimal32 result) => Number.TryParseDecimalIeee754<byte, Decimal32, uint>(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, NumberFormatInfo.GetInstance(provider), out result, out _) == Number.ParsingStatus.OK; 809public static Decimal32 One => new Decimal32(OneValue); 812public static Decimal32 NegativeOne => new Decimal32(NegativeOneValue); 815public static Decimal32 E => new Decimal32(EValue); 818public static Decimal32 Pi => new Decimal32(PiValue); 821public static Decimal32 Tau => new Decimal32(TauValue); 828public static Decimal32 Ceiling(Decimal32 x) => new Decimal32(Number.RoundDecimalIeee754<Decimal32, uint>(x._value, 0, MidpointRounding.ToPositiveInfinity)); 831public static TInteger ConvertToInteger<TInteger>(Decimal32 value) 835public static TInteger ConvertToIntegerNative<TInteger>(Decimal32 value) 839public static Decimal32 Floor(Decimal32 x) => new Decimal32(Number.RoundDecimalIeee754<Decimal32, uint>(x._value, 0, MidpointRounding.ToNegativeInfinity)); 842public static Decimal32 Round(Decimal32 x) => new Decimal32(Number.RoundDecimalIeee754<Decimal32, uint>(x._value, 0, MidpointRounding.ToEven)); 845public static Decimal32 Round(Decimal32 x, int digits) => new Decimal32(Number.RoundDecimalIeee754<Decimal32, uint>(x._value, digits, MidpointRounding.ToEven)); 848public static Decimal32 Round(Decimal32 x, MidpointRounding mode) => new Decimal32(Number.RoundDecimalIeee754<Decimal32, uint>(x._value, 0, mode)); 851public static Decimal32 Round(Decimal32 x, int digits, MidpointRounding mode) => new Decimal32(Number.RoundDecimalIeee754<Decimal32, uint>(x._value, digits, mode)); 854public static Decimal32 Truncate(Decimal32 x) => new Decimal32(Number.RoundDecimalIeee754<Decimal32, uint>(x._value, 0, MidpointRounding.ToZero)); 857int IFloatingPoint<Decimal32>.GetExponentByteCount() => sizeof(int); 860int IFloatingPoint<Decimal32>.GetExponentShortestBitLength() 862int exponent = Number.UnpackDecimalIeee754<Decimal32, uint>(_value).UnbiasedExponent; 875int IFloatingPoint<Decimal32>.GetSignificandBitLength() => 24; 878int IFloatingPoint<Decimal32>.GetSignificandByteCount() => sizeof(uint); 881bool IFloatingPoint<Decimal32>.TryWriteExponentBigEndian(Span<byte> destination, out int bytesWritten) 883if (BinaryPrimitives.TryWriteInt32BigEndian(destination, Number.UnpackDecimalIeee754<Decimal32, uint>(_value).UnbiasedExponent)) 894bool IFloatingPoint<Decimal32>.TryWriteExponentLittleEndian(Span<byte> destination, out int bytesWritten) 896if (BinaryPrimitives.TryWriteInt32LittleEndian(destination, Number.UnpackDecimalIeee754<Decimal32, uint>(_value).UnbiasedExponent)) 907bool IFloatingPoint<Decimal32>.TryWriteSignificandBigEndian(Span<byte> destination, out int bytesWritten) 909if (BinaryPrimitives.TryWriteUInt32BigEndian(destination, Number.UnpackDecimalIeee754<Decimal32, uint>(_value).Significand)) 920bool IFloatingPoint<Decimal32>.TryWriteSignificandLittleEndian(Span<byte> destination, out int bytesWritten) 922if (BinaryPrimitives.TryWriteUInt32LittleEndian(destination, Number.UnpackDecimalIeee754<Decimal32, uint>(_value).Significand)) 937public static Decimal32 Acos(Decimal32 x) => new Decimal32(Number.AcosDecimalIeee754<Decimal32, uint>(x._value)); 940public static Decimal32 AcosPi(Decimal32 x) => new Decimal32(Number.AcosPiDecimalIeee754<Decimal32, uint>(x._value)); 943public static Decimal32 Acosh(Decimal32 x) => new Decimal32(Number.AcoshDecimalIeee754<Decimal32, uint>(x._value)); 946public static Decimal32 Asin(Decimal32 x) => new Decimal32(Number.AsinDecimalIeee754<Decimal32, uint>(x._value)); 949public static Decimal32 AsinPi(Decimal32 x) => new Decimal32(Number.AsinPiDecimalIeee754<Decimal32, uint>(x._value)); 952public static Decimal32 Asinh(Decimal32 x) => new Decimal32(Number.AsinhDecimalIeee754<Decimal32, uint>(x._value)); 955public static Decimal32 Atan(Decimal32 x) => new Decimal32(Number.AtanDecimalIeee754<Decimal32, uint>(x._value)); 958public static Decimal32 Atan2(Decimal32 y, Decimal32 x) => new Decimal32(Number.Atan2DecimalIeee754<Decimal32, uint>(y._value, x._value)); 961public static Decimal32 Atan2Pi(Decimal32 y, Decimal32 x) => new Decimal32(Number.Atan2PiDecimalIeee754<Decimal32, uint>(y._value, x._value)); 964public static Decimal32 AtanPi(Decimal32 x) => new Decimal32(Number.AtanPiDecimalIeee754<Decimal32, uint>(x._value)); 967public static Decimal32 Atanh(Decimal32 x) => new Decimal32(Number.AtanhDecimalIeee754<Decimal32, uint>(x._value)); 970public static Decimal32 BitDecrement(Decimal32 x) => new Decimal32(Number.BitDecrementDecimalIeee754<Decimal32, uint>(x._value)); 973public static Decimal32 BitIncrement(Decimal32 x) => new Decimal32(Number.BitIncrementDecimalIeee754<Decimal32, uint>(x._value)); 976public static Decimal32 Cbrt(Decimal32 x) => new Decimal32(Number.CbrtDecimalIeee754<Decimal32, uint>(x._value)); 979public static Decimal32 Cos(Decimal32 x) => new Decimal32(Number.CosDecimalIeee754<Decimal32, uint>(x._value)); 982public static Decimal32 CosPi(Decimal32 x) => new Decimal32(Number.CosPiDecimalIeee754<Decimal32, uint>(x._value)); 985public static Decimal32 Cosh(Decimal32 x) => new Decimal32(Number.CoshDecimalIeee754<Decimal32, uint>(x._value)); 988public static Decimal32 DegreesToRadians(Decimal32 degrees) => new Decimal32(Number.MultiplyByWideConstantDecimalIeee754<Decimal32, uint>(degrees._value, DegreesToRadiansHead, DegreesToRadiansTail, DegreesToRadiansExponent)); 991public static Decimal32 Exp(Decimal32 x) => new Decimal32(Number.ExpDecimalIeee754<Decimal32, uint>(x._value)); 994public static Decimal32 Exp10(Decimal32 x) => new Decimal32(Number.Exp10DecimalIeee754<Decimal32, uint>(x._value)); 997public static Decimal32 Exp10M1(Decimal32 x) => new Decimal32(Number.Exp10M1DecimalIeee754<Decimal32, uint>(x._value)); 1000public static Decimal32 Exp2(Decimal32 x) => new Decimal32(Number.Exp2DecimalIeee754<Decimal32, uint>(x._value)); 1003public static Decimal32 Exp2M1(Decimal32 x) => new Decimal32(Number.Exp2M1DecimalIeee754<Decimal32, uint>(x._value)); 1006public static Decimal32 ExpM1(Decimal32 x) => new Decimal32(Number.ExpM1DecimalIeee754<Decimal32, uint>(x._value)); 1009public static Decimal32 FusedMultiplyAdd(Decimal32 left, Decimal32 right, Decimal32 addend) => new Decimal32(Number.FusedMultiplyAddDecimalIeee754<Decimal32, uint>(left._value, right._value, addend._value)); 1012public static Decimal32 Hypot(Decimal32 x, Decimal32 y) => new Decimal32(Number.HypotDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1015public static Decimal32 Ieee754Remainder(Decimal32 left, Decimal32 right) => new Decimal32(Number.Ieee754RemainderDecimalIeee754<Decimal32, uint>(left._value, right._value)); 1018public static int ILogB(Decimal32 x) => Number.ILogBDecimalIeee754<Decimal32, uint>(x._value); 1021public static Decimal32 Lerp(Decimal32 value1, Decimal32 value2, Decimal32 amount) => MultiplyAddEstimate(value1, One - amount, value2 * amount); 1024public static Decimal32 Log(Decimal32 x) => new Decimal32(Number.LogDecimalIeee754<Decimal32, uint>(x._value)); 1027public static Decimal32 Log(Decimal32 x, Decimal32 newBase) => new Decimal32(Number.LogDecimalIeee754<Decimal32, uint>(x._value, newBase._value)); 1030public static Decimal32 Log10(Decimal32 x) => new Decimal32(Number.Log10DecimalIeee754<Decimal32, uint>(x._value)); 1033public static Decimal32 Log10P1(Decimal32 x) => new Decimal32(Number.Log10P1DecimalIeee754<Decimal32, uint>(x._value)); 1036public static Decimal32 Log2(Decimal32 x) => new Decimal32(Number.Log2DecimalIeee754<Decimal32, uint>(x._value)); 1039public static Decimal32 Log2P1(Decimal32 x) => new Decimal32(Number.Log2P1DecimalIeee754<Decimal32, uint>(x._value)); 1042public static Decimal32 LogP1(Decimal32 x) => new Decimal32(Number.LogP1DecimalIeee754<Decimal32, uint>(x._value)); 1045public static Decimal32 Pow(Decimal32 x, Decimal32 y) => new Decimal32(Number.PowDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1048public static Decimal32 RadiansToDegrees(Decimal32 radians) => new Decimal32(Number.MultiplyByWideConstantDecimalIeee754<Decimal32, uint>(radians._value, RadiansToDegreesHead, RadiansToDegreesTail, RadiansToDegreesExponent)); 1051public static Decimal32 ReciprocalEstimate(Decimal32 x) => One / x; 1054public static Decimal32 ReciprocalSqrtEstimate(Decimal32 x) => One / Sqrt(x); 1057public static Decimal32 RootN(Decimal32 x, int n) => new Decimal32(Number.RootNDecimalIeee754<Decimal32, uint>(x._value, n)); 1060public static Decimal32 ScaleB(Decimal32 x, int n) => new Decimal32(Number.ScaleBDecimalIeee754<Decimal32, uint>(x._value, n)); 1063public static Decimal32 Sin(Decimal32 x) => new Decimal32(Number.SinDecimalIeee754<Decimal32, uint>(x._value)); 1066public static (Decimal32 Sin, Decimal32 Cos) SinCos(Decimal32 x) 1068(uint sin, uint cos) = Number.SinCosDecimalIeee754<Decimal32, uint>(x._value); 1073public static (Decimal32 SinPi, Decimal32 CosPi) SinCosPi(Decimal32 x) 1075(uint sin, uint cos) = Number.SinCosPiDecimalIeee754<Decimal32, uint>(x._value); 1080public static Decimal32 SinPi(Decimal32 x) => new Decimal32(Number.SinPiDecimalIeee754<Decimal32, uint>(x._value)); 1083public static Decimal32 Sinh(Decimal32 x) => new Decimal32(Number.SinhDecimalIeee754<Decimal32, uint>(x._value)); 1086public static Decimal32 Sqrt(Decimal32 x) => new Decimal32(Number.SqrtDecimalIeee754<Decimal32, uint>(x._value)); 1089public static Decimal32 Tan(Decimal32 x) => new Decimal32(Number.TanDecimalIeee754<Decimal32, uint>(x._value)); 1092public static Decimal32 TanPi(Decimal32 x) => new Decimal32(Number.TanPiDecimalIeee754<Decimal32, uint>(x._value)); 1095public static Decimal32 Tanh(Decimal32 x) => new Decimal32(Number.TanhDecimalIeee754<Decimal32, uint>(x._value)); 1101public static Decimal32 Quantize(Decimal32 x, Decimal32 y) => new Decimal32(Number.QuantizeDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1106public static Decimal32 GetQuantum(Decimal32 x) => new Decimal32(Number.QuantumDecimalIeee754<Decimal32, uint>(x._value)); 1112public static bool HaveSameQuantum(Decimal32 x, Decimal32 y) => Number.SameQuantumDecimalIeee754<Decimal32, uint>(x._value, y._value); 1117public static Decimal32 Abs(Decimal32 value) => new Decimal32(Number.AbsDecimalIeee754<Decimal32, uint>(value._value)); 1122public static bool IsFinite(Decimal32 value) => (value._value & InfinityMask) != InfinityMask; 1127public static bool IsInfinity(Decimal32 value) => (value._value & NaNMask) == InfinityMask; 1132public static bool IsNaN(Decimal32 value) => (value._value & NaNMask) == NaNMask; 1137public static bool IsNegative(Decimal32 value) => (value._value & SignMask) != 0; 1142public static bool IsNegativeInfinity(Decimal32 value) => (value._value & (SignMask | NaNMask)) == NegativeInfinityValue; 1147public static bool IsPositive(Decimal32 value) => (value._value & SignMask) == 0; 1152public static bool IsPositiveInfinity(Decimal32 value) => (value._value & (SignMask | NaNMask)) == PositiveInfinityValue; 1157public static bool IsRealNumber(Decimal32 value) => !IsNaN(value); 1162public static bool IsInteger(Decimal32 value) => Number.IsIntegerDecimalIeee754<Decimal32, uint>(value._value); 1167public static bool IsEvenInteger(Decimal32 value) => Number.IsEvenIntegerDecimalIeee754<Decimal32, uint>(value._value); 1172public static bool IsOddInteger(Decimal32 value) => Number.IsOddIntegerDecimalIeee754<Decimal32, uint>(value._value); 1177public static bool IsNormal(Decimal32 value) => Number.IsNormalDecimalIeee754<Decimal32, uint>(value._value); 1182public static bool IsSubnormal(Decimal32 value) => Number.IsSubnormalDecimalIeee754<Decimal32, uint>(value._value); 1188public static Decimal32 MaxMagnitude(Decimal32 x, Decimal32 y) => new Decimal32(Number.MaxMagnitudeDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1194public static Decimal32 MaxMagnitudeNumber(Decimal32 x, Decimal32 y) => new Decimal32(Number.MaxMagnitudeNumberDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1200public static Decimal32 MinMagnitude(Decimal32 x, Decimal32 y) => new Decimal32(Number.MinMagnitudeDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1206public static Decimal32 MinMagnitudeNumber(Decimal32 x, Decimal32 y) => new Decimal32(Number.MinMagnitudeNumberDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1213public static Decimal32 MultiplyAddEstimate(Decimal32 left, Decimal32 right, Decimal32 addend) => (left * right) + addend; 1221public static Decimal32 Clamp(Decimal32 value, Decimal32 min, Decimal32 max) 1236public static Decimal32 ClampNative(Decimal32 value, Decimal32 min, Decimal32 max) 1249public static Decimal32 CopySign(Decimal32 value, Decimal32 sign) => new Decimal32(Number.CopySignDecimalIeee754<Decimal32, uint>(value._value, sign._value)); 1255public static Decimal32 Max(Decimal32 x, Decimal32 y) => new Decimal32(Number.MaxDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1261public static Decimal32 MaxNative(Decimal32 x, Decimal32 y) => new Decimal32(Number.MaxNativeDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1267public static Decimal32 MaxNumber(Decimal32 x, Decimal32 y) => new Decimal32(Number.MaxNumberDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1273public static Decimal32 Min(Decimal32 x, Decimal32 y) => new Decimal32(Number.MinDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1279public static Decimal32 MinNative(Decimal32 x, Decimal32 y) => new Decimal32(Number.MinNativeDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1285public static Decimal32 MinNumber(Decimal32 x, Decimal32 y) => new Decimal32(Number.MinNumberDecimalIeee754<Decimal32, uint>(x._value, y._value)); 1291public static int Sign(Decimal32 value) => Number.SignDecimalIeee754<Decimal32, uint>(value._value); 1294static int INumberBase<Decimal32>.Radix => 10; 1297static bool INumberBase<Decimal32>.IsCanonical(Decimal32 value) => Number.IsCanonicalDecimalIeee754<Decimal32, uint>(value._value, nanReservedMask: 0x01F0_0000, nanPayloadMask: NaNPayloadMask, maxNaNPayload: 999_999); 1300static bool INumberBase<Decimal32>.IsComplexNumber(Decimal32 value) => false; 1303static bool INumberBase<Decimal32>.IsImaginaryNumber(Decimal32 value) => false; 1306static bool INumberBase<Decimal32>.IsZero(Decimal32 value) => Number.IsZeroDecimalIeee754<Decimal32, uint>(value._value); 1309static Decimal32 IAdditiveIdentity<Decimal32, Decimal32>.AdditiveIdentity => Zero; 1312static Decimal32 IMultiplicativeIdentity<Decimal32, Decimal32>.MultiplicativeIdentity => One; 1316public static Decimal32 CreateChecked<TOther>(TOther value) 1319Decimal32 result; 1321if (typeof(TOther) == typeof(Decimal32)) 1323result = (Decimal32)(object)value; 1335public static Decimal32 CreateSaturating<TOther>(TOther value) 1338Decimal32 result; 1340if (typeof(TOther) == typeof(Decimal32)) 1342result = (Decimal32)(object)value; 1354public static Decimal32 CreateTruncating<TOther>(TOther value) 1357Decimal32 result; 1359if (typeof(TOther) == typeof(Decimal32)) 1361result = (Decimal32)(object)value; 1373static bool INumberBase<Decimal32>.TryConvertFromChecked<TOther>(TOther value, out Decimal32 result) => TryConvertFrom(value, out result); 1377static bool INumberBase<Decimal32>.TryConvertFromSaturating<TOther>(TOther value, out Decimal32 result) => TryConvertFrom(value, out result); 1381static bool INumberBase<Decimal32>.TryConvertFromTruncating<TOther>(TOther value, out Decimal32 result) => TryConvertFrom(value, out result); 1384private static bool TryConvertFrom<TOther>(TOther value, out Decimal32 result) 1418result = (Decimal32)(int)(object)value; 1423result = (Decimal32)(uint)(object)value; 1428result = (Decimal32)(long)(object)value; 1433result = (Decimal32)(ulong)(object)value; 1438result = (Decimal32)(Int128)(object)value; 1443result = (Decimal32)(UInt128)(object)value; 1448result = (Decimal32)(nint)(object)value; 1453result = (Decimal32)(nuint)(object)value; 1458result = (Decimal32)(Half)(object)value; 1463result = (Decimal32)(float)(object)value; 1468result = (Decimal32)(double)(object)value; 1473result = (Decimal32)(decimal)(object)value; 1478result = (Decimal32)(Decimal64)(object)value; 1483result = (Decimal32)(Decimal128)(object)value; 1495static bool INumberBase<Decimal32>.TryConvertToChecked<TOther>(Decimal32 value, [MaybeNullWhen(false)] out TOther result) 1618static bool INumberBase<Decimal32>.TryConvertToSaturating<TOther>(Decimal32 value, [MaybeNullWhen(false)] out TOther result) => TryConvertTo(value, out result); 1622static bool INumberBase<Decimal32>.TryConvertToTruncating<TOther>(Decimal32 value, [MaybeNullWhen(false)] out TOther result) => TryConvertTo(value, out result); 1625private static bool TryConvertTo<TOther>(Decimal32 value, [MaybeNullWhen(false)] out TOther result) 1744static int IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.Precision => Precision; 1746static int IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.BufferLength => Number.Decimal32NumberBufferLength; 1748static string IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.ToDecStr(uint significand) 1753static unsafe uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.NumberToSignificand(ref Number.NumberBuffer number, int digits) 1758static Decimal32 IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.Construct(uint value) => new Decimal32(value); 1760static int IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.ConvertToExponent(uint value) => (int)value; 1762static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.Power10(int exponent) => UInt32Powers10[exponent]; 1764static (uint Quotient, uint Remainder) IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.DivRemPow10(uint value, int exponent) 1769static int IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.CountDigits(uint significand) => FormattingHelpers.CountDigits(significand); 1771static int IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.MaxExponent => MaxExponent; 1773static int IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.MinExponent => MinExponent; 1775static int IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.MaxAdjustedExponent => MaxExponent - Precision + 1; 1777static int IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.MinAdjustedExponent => MinExponent - Precision + 1; 1779static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.PositiveInfinity => PositiveInfinityValue; 1781static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.NegativeInfinity => NegativeInfinityValue; 1783static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.Zero => ZeroValue; 1785static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.NaN => QuietNaNValue; 1787static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.MostSignificantBitOfSignificandMask => MostSignificantBitOfSignificandMask; 1789static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.NaNMask => NaNMask; 1791static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.SNaNMask => SNaNMask; 1793static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.NaNPayloadMask => NaNPayloadMask; 1795static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.SignMask => SignMask; 1797static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.G0G1Mask => G0G1Mask; 1799static int IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.ExponentBias => ExponentBias; 1801static int IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.NumberBitsSignificand => 20; 1803static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.G0ToGwPlus1ExponentMask => 0x7F80_0000; 1805static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.G2ToGwPlus3ExponentMask => 0x1FE0_0000; 1807static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.GwPlus2ToGwPlus4SignificandMask => 0x007F_FFFF; 1809static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.GwPlus4SignificandMask => 0x001F_FFFF; 1811static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.MaxSignificand => MaxSignificand; 1813static bool IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.IsNaN(uint decimalBits) => IsNaN(new Decimal32(decimalBits)); 1815static bool IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.IsNegative(uint decimalBits) => IsNegative(new Decimal32(decimalBits)); 1817static bool IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.IsFinite(uint decimalBits) => IsFinite(new Decimal32(decimalBits)); 1819static bool IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.IsInfinity(uint decimalBits) => IsInfinity(new Decimal32(decimalBits)); 1821static bool IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.IsPositiveInfinity(uint decimalBits) => IsPositiveInfinity(new Decimal32(decimalBits)); 1823static bool IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.IsNegativeInfinity(uint decimalBits) => IsNegativeInfinity(new Decimal32(decimalBits)); 1825static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.EncodeExponentToG0ThroughGwPlus1(uint biasedExponent) 1830static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.EncodeExponentToG2ThroughGwPlus3(uint biasedExponent)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (6)
1469else if (typeof(TOther) == typeof(Decimal32)) 1471result = (Decimal32)(object)value; 1592else if (typeof(TOther) == typeof(Decimal32)) 1594result = (TOther)(object)(Decimal32)value; 1719else if (typeof(TOther) == typeof(Decimal32)) 1721result = (TOther)(object)(Decimal32)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (4)
74else if (typeof(T) == typeof(Decimal32)) 76return CompareDecimal<Decimal32, uint>(((Decimal32)(object)x!)._value, ((Decimal32)(object)y!)._value);
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
379[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Decimal32))]
System.Text.Json (6)
System\Text\Json\Nodes\JsonValueOfT.cs (1)
108if (type == typeof(System.Numerics.BFloat16) || type == typeof(System.Numerics.Decimal32) ||
System\Text\Json\Serialization\Converters\Value\JsonPrimitiveConverter.cs (1)
39typeof(T) == typeof(System.Numerics.BFloat16) || typeof(T) == typeof(System.Numerics.Decimal32) ||
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Converters.cs (3)
187/// Returns a <see cref="JsonConverter{T}"/> instance that converts <see cref="System.Numerics.Decimal32"/> values. 190public static JsonConverter<System.Numerics.Decimal32> Decimal32Converter => 191field ??= new Ieee754FloatingPointConverter<System.Numerics.Decimal32>(NumericType.Decimal32);
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
730potentialNumberType == typeof(System.Numerics.Decimal32) ||