119 references to Decimal64
System.Private.CoreLib (119)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
701
public static implicit operator Decimal64(Decimal32 value) => new
Decimal64
(Number.ConvertDecimalIeee754<Decimal32, uint, Decimal64, ulong>(value._value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (118)
72
public static Decimal64 PositiveInfinity => new
Decimal64
(PositiveInfinityValue);
75
public static Decimal64 NegativeInfinity => new
Decimal64
(NegativeInfinityValue);
78
public static Decimal64 NaN => new
Decimal64
(QuietNaNValue);
81
public static Decimal64 NegativeZero => new
Decimal64
(NegativeZeroValue);
84
public static Decimal64 Zero => new
Decimal64
(ZeroValue);
87
public static Decimal64 MinValue => new
Decimal64
(MinInternalValue);
90
public static Decimal64 MaxValue => new
Decimal64
(MaxInternalValue);
93
public static Decimal64 Epsilon => new
Decimal64
(0x0000_0000_0000_0001); // Smallest positive subnormal value, aka 1 * 10^-398
279
public static Decimal64 DecodeBinary(ulong x) => new
Decimal64
(x);
291
public static Decimal64 DecodeDecimal(ulong x) => new
Decimal64
(Number.DecodeDecimalIeee754<Decimal64, ulong>(x));
345
public static Decimal64 operator -(Decimal64 value) => new
Decimal64
(value._value ^ SignMask);
352
return new
Decimal64
(Number.AddDecimalIeee754<Decimal64, ulong>(value._value, OneValue));
360
return new
Decimal64
(Number.SubtractDecimalIeee754<Decimal64, ulong>(value._value, OneValue));
369
return new
Decimal64
(Number.AddDecimalIeee754<Decimal64, ulong>(left._value, right._value));
378
return new
Decimal64
(Number.SubtractDecimalIeee754<Decimal64, ulong>(left._value, right._value));
387
return new
Decimal64
(Number.MultiplyDecimalIeee754<Decimal64, ulong>(left._value, right._value));
396
return new
Decimal64
(Number.DivideDecimalIeee754<Decimal64, ulong>(left._value, right._value));
405
return new
Decimal64
(Number.RemainderDecimalIeee754<Decimal64, ulong>(left._value, right._value));
415
public static explicit operator Decimal64(nint value) => new
Decimal64
(Number.ConvertIntegerToDecimalIeee754<Decimal64, ulong, nint>(value));
421
public static explicit operator Decimal64(nuint value) => new
Decimal64
(Number.ConvertIntegerToDecimalIeee754<Decimal64, ulong, nuint>(value));
426
public static explicit operator Decimal64(long value) => new
Decimal64
(Number.ConvertIntegerToDecimalIeee754<Decimal64, ulong, long>(value));
432
public static explicit operator Decimal64(ulong value) => new
Decimal64
(Number.ConvertIntegerToDecimalIeee754<Decimal64, ulong, ulong>(value));
437
public static explicit operator Decimal64(Int128 value) => new
Decimal64
(Number.ConvertIntegerToDecimalIeee754<Decimal64, ulong, Int128>(value));
443
public static explicit operator Decimal64(UInt128 value) => new
Decimal64
(Number.ConvertIntegerToDecimalIeee754<Decimal64, ulong, UInt128>(value));
448
public static explicit operator Decimal64(Half value) => new
Decimal64
(Number.ConvertFloatToDecimalIeee754<Half, Decimal64, ulong>(value));
453
public static explicit operator Decimal64(float value) => new
Decimal64
(Number.ConvertFloatToDecimalIeee754<float, Decimal64, ulong>(value));
458
public static explicit operator Decimal64(double value) => new
Decimal64
(Number.ConvertFloatToDecimalIeee754<double, Decimal64, ulong>(value));
463
public static explicit operator Decimal64(Decimal128 value) => new
Decimal64
(Number.ConvertDecimalIeee754<Decimal128, UInt128, Decimal64, ulong>(new UInt128(value._upper, value._lower)));
468
public static explicit operator Decimal64(decimal value) => new
Decimal64
(Number.ConvertDecimalToDecimalIeee754<Decimal64, ulong>(value));
657
public static implicit operator Decimal64(byte value) => new
Decimal64
(Number.ConvertIntegerToDecimalIeee754<Decimal64, ulong, byte>(value));
663
public static implicit operator Decimal64(sbyte value) => new
Decimal64
(Number.ConvertIntegerToDecimalIeee754<Decimal64, ulong, sbyte>(value));
668
public static implicit operator Decimal64(char value) => new
Decimal64
(Number.ConvertIntegerToDecimalIeee754<Decimal64, ulong, ushort>(value));
673
public static implicit operator Decimal64(short value) => new
Decimal64
(Number.ConvertIntegerToDecimalIeee754<Decimal64, ulong, short>(value));
679
public static implicit operator Decimal64(ushort value) => new
Decimal64
(Number.ConvertIntegerToDecimalIeee754<Decimal64, ulong, ushort>(value));
684
public static implicit operator Decimal64(int value) => new
Decimal64
(Number.ConvertIntegerToDecimalIeee754<Decimal64, ulong, int>(value));
690
public static implicit operator Decimal64(uint value) => new
Decimal64
(Number.ConvertIntegerToDecimalIeee754<Decimal64, ulong, uint>(value));
802
public static Decimal64 One => new
Decimal64
(OneValue);
805
public static Decimal64 NegativeOne => new
Decimal64
(NegativeOneValue);
808
public static Decimal64 E => new
Decimal64
(EValue);
811
public static Decimal64 Pi => new
Decimal64
(PiValue);
814
public static Decimal64 Tau => new
Decimal64
(TauValue);
821
public static Decimal64 Ceiling(Decimal64 x) => new
Decimal64
(Number.RoundDecimalIeee754<Decimal64, ulong>(x._value, 0, MidpointRounding.ToPositiveInfinity));
832
public static Decimal64 Floor(Decimal64 x) => new
Decimal64
(Number.RoundDecimalIeee754<Decimal64, ulong>(x._value, 0, MidpointRounding.ToNegativeInfinity));
835
public static Decimal64 Round(Decimal64 x) => new
Decimal64
(Number.RoundDecimalIeee754<Decimal64, ulong>(x._value, 0, MidpointRounding.ToEven));
838
public static Decimal64 Round(Decimal64 x, int digits) => new
Decimal64
(Number.RoundDecimalIeee754<Decimal64, ulong>(x._value, digits, MidpointRounding.ToEven));
841
public static Decimal64 Round(Decimal64 x, MidpointRounding mode) => new
Decimal64
(Number.RoundDecimalIeee754<Decimal64, ulong>(x._value, 0, mode));
844
public static Decimal64 Round(Decimal64 x, int digits, MidpointRounding mode) => new
Decimal64
(Number.RoundDecimalIeee754<Decimal64, ulong>(x._value, digits, mode));
847
public static Decimal64 Truncate(Decimal64 x) => new
Decimal64
(Number.RoundDecimalIeee754<Decimal64, ulong>(x._value, 0, MidpointRounding.ToZero));
930
public static Decimal64 Acos(Decimal64 x) => new
Decimal64
(Number.AcosDecimalIeee754<Decimal64, ulong>(x._value));
933
public static Decimal64 AcosPi(Decimal64 x) => new
Decimal64
(Number.AcosPiDecimalIeee754<Decimal64, ulong>(x._value));
936
public static Decimal64 Acosh(Decimal64 x) => new
Decimal64
(Number.AcoshDecimalIeee754<Decimal64, ulong>(x._value));
939
public static Decimal64 Asin(Decimal64 x) => new
Decimal64
(Number.AsinDecimalIeee754<Decimal64, ulong>(x._value));
942
public static Decimal64 AsinPi(Decimal64 x) => new
Decimal64
(Number.AsinPiDecimalIeee754<Decimal64, ulong>(x._value));
945
public static Decimal64 Asinh(Decimal64 x) => new
Decimal64
(Number.AsinhDecimalIeee754<Decimal64, ulong>(x._value));
948
public static Decimal64 Atan(Decimal64 x) => new
Decimal64
(Number.AtanDecimalIeee754<Decimal64, ulong>(x._value));
951
public static Decimal64 Atan2(Decimal64 y, Decimal64 x) => new
Decimal64
(Number.Atan2DecimalIeee754<Decimal64, ulong>(y._value, x._value));
954
public static Decimal64 Atan2Pi(Decimal64 y, Decimal64 x) => new
Decimal64
(Number.Atan2PiDecimalIeee754<Decimal64, ulong>(y._value, x._value));
957
public static Decimal64 AtanPi(Decimal64 x) => new
Decimal64
(Number.AtanPiDecimalIeee754<Decimal64, ulong>(x._value));
960
public static Decimal64 Atanh(Decimal64 x) => new
Decimal64
(Number.AtanhDecimalIeee754<Decimal64, ulong>(x._value));
963
public static Decimal64 BitDecrement(Decimal64 x) => new
Decimal64
(Number.BitDecrementDecimalIeee754<Decimal64, ulong>(x._value));
966
public static Decimal64 BitIncrement(Decimal64 x) => new
Decimal64
(Number.BitIncrementDecimalIeee754<Decimal64, ulong>(x._value));
969
public static Decimal64 Cbrt(Decimal64 x) => new
Decimal64
(Number.CbrtDecimalIeee754<Decimal64, ulong>(x._value));
972
public static Decimal64 Cos(Decimal64 x) => new
Decimal64
(Number.CosDecimalIeee754<Decimal64, ulong>(x._value));
975
public static Decimal64 CosPi(Decimal64 x) => new
Decimal64
(Number.CosPiDecimalIeee754<Decimal64, ulong>(x._value));
978
public static Decimal64 Cosh(Decimal64 x) => new
Decimal64
(Number.CoshDecimalIeee754<Decimal64, ulong>(x._value));
981
public static Decimal64 DegreesToRadians(Decimal64 degrees) => new
Decimal64
(Number.MultiplyByWideConstantDecimalIeee754<Decimal64, ulong>(degrees._value, DegreesToRadiansHead, DegreesToRadiansTail, DegreesToRadiansExponent));
984
public static Decimal64 Exp(Decimal64 x) => new
Decimal64
(Number.ExpDecimalIeee754<Decimal64, ulong>(x._value));
987
public static Decimal64 Exp10(Decimal64 x) => new
Decimal64
(Number.Exp10DecimalIeee754<Decimal64, ulong>(x._value));
990
public static Decimal64 Exp10M1(Decimal64 x) => new
Decimal64
(Number.Exp10M1DecimalIeee754<Decimal64, ulong>(x._value));
993
public static Decimal64 Exp2(Decimal64 x) => new
Decimal64
(Number.Exp2DecimalIeee754<Decimal64, ulong>(x._value));
996
public static Decimal64 Exp2M1(Decimal64 x) => new
Decimal64
(Number.Exp2M1DecimalIeee754<Decimal64, ulong>(x._value));
999
public static Decimal64 ExpM1(Decimal64 x) => new
Decimal64
(Number.ExpM1DecimalIeee754<Decimal64, ulong>(x._value));
1002
public static Decimal64 FusedMultiplyAdd(Decimal64 left, Decimal64 right, Decimal64 addend) => new
Decimal64
(Number.FusedMultiplyAddDecimalIeee754<Decimal64, ulong>(left._value, right._value, addend._value));
1005
public static Decimal64 Hypot(Decimal64 x, Decimal64 y) => new
Decimal64
(Number.HypotDecimalIeee754<Decimal64, ulong>(x._value, y._value));
1008
public static Decimal64 Ieee754Remainder(Decimal64 left, Decimal64 right) => new
Decimal64
(Number.Ieee754RemainderDecimalIeee754<Decimal64, ulong>(left._value, right._value));
1017
public static Decimal64 Log(Decimal64 x) => new
Decimal64
(Number.LogDecimalIeee754<Decimal64, ulong>(x._value));
1020
public static Decimal64 Log(Decimal64 x, Decimal64 newBase) => new
Decimal64
(Number.LogDecimalIeee754<Decimal64, ulong>(x._value, newBase._value));
1023
public static Decimal64 Log10(Decimal64 x) => new
Decimal64
(Number.Log10DecimalIeee754<Decimal64, ulong>(x._value));
1026
public static Decimal64 Log10P1(Decimal64 x) => new
Decimal64
(Number.Log10P1DecimalIeee754<Decimal64, ulong>(x._value));
1029
public static Decimal64 Log2(Decimal64 x) => new
Decimal64
(Number.Log2DecimalIeee754<Decimal64, ulong>(x._value));
1032
public static Decimal64 Log2P1(Decimal64 x) => new
Decimal64
(Number.Log2P1DecimalIeee754<Decimal64, ulong>(x._value));
1035
public static Decimal64 LogP1(Decimal64 x) => new
Decimal64
(Number.LogP1DecimalIeee754<Decimal64, ulong>(x._value));
1038
public static Decimal64 Pow(Decimal64 x, Decimal64 y) => new
Decimal64
(Number.PowDecimalIeee754<Decimal64, ulong>(x._value, y._value));
1041
public static Decimal64 RadiansToDegrees(Decimal64 radians) => new
Decimal64
(Number.MultiplyByWideConstantDecimalIeee754<Decimal64, ulong>(radians._value, RadiansToDegreesHead, RadiansToDegreesTail, RadiansToDegreesExponent));
1050
public static Decimal64 RootN(Decimal64 x, int n) => new
Decimal64
(Number.RootNDecimalIeee754<Decimal64, ulong>(x._value, n));
1053
public static Decimal64 ScaleB(Decimal64 x, int n) => new
Decimal64
(Number.ScaleBDecimalIeee754<Decimal64, ulong>(x._value, n));
1056
public static Decimal64 Sin(Decimal64 x) => new
Decimal64
(Number.SinDecimalIeee754<Decimal64, ulong>(x._value));
1062
return (new
Decimal64
(sin), new
Decimal64
(cos));
1069
return (new
Decimal64
(sin), new
Decimal64
(cos));
1073
public static Decimal64 SinPi(Decimal64 x) => new
Decimal64
(Number.SinPiDecimalIeee754<Decimal64, ulong>(x._value));
1076
public static Decimal64 Sinh(Decimal64 x) => new
Decimal64
(Number.SinhDecimalIeee754<Decimal64, ulong>(x._value));
1079
public static Decimal64 Sqrt(Decimal64 x) => new
Decimal64
(Number.SqrtDecimalIeee754<Decimal64, ulong>(x._value));
1082
public static Decimal64 Tan(Decimal64 x) => new
Decimal64
(Number.TanDecimalIeee754<Decimal64, ulong>(x._value));
1085
public static Decimal64 TanPi(Decimal64 x) => new
Decimal64
(Number.TanPiDecimalIeee754<Decimal64, ulong>(x._value));
1088
public static Decimal64 Tanh(Decimal64 x) => new
Decimal64
(Number.TanhDecimalIeee754<Decimal64, ulong>(x._value));
1094
public static Decimal64 Quantize(Decimal64 x, Decimal64 y) => new
Decimal64
(Number.QuantizeDecimalIeee754<Decimal64, ulong>(x._value, y._value));
1099
public static Decimal64 GetQuantum(Decimal64 x) => new
Decimal64
(Number.QuantumDecimalIeee754<Decimal64, ulong>(x._value));
1110
public static Decimal64 Abs(Decimal64 value) => new
Decimal64
(Number.AbsDecimalIeee754<Decimal64, ulong>(value._value));
1181
public static Decimal64 MaxMagnitude(Decimal64 x, Decimal64 y) => new
Decimal64
(Number.MaxMagnitudeDecimalIeee754<Decimal64, ulong>(x._value, y._value));
1187
public static Decimal64 MaxMagnitudeNumber(Decimal64 x, Decimal64 y) => new
Decimal64
(Number.MaxMagnitudeNumberDecimalIeee754<Decimal64, ulong>(x._value, y._value));
1193
public static Decimal64 MinMagnitude(Decimal64 x, Decimal64 y) => new
Decimal64
(Number.MinMagnitudeDecimalIeee754<Decimal64, ulong>(x._value, y._value));
1199
public static Decimal64 MinMagnitudeNumber(Decimal64 x, Decimal64 y) => new
Decimal64
(Number.MinMagnitudeNumberDecimalIeee754<Decimal64, ulong>(x._value, y._value));
1242
public static Decimal64 CopySign(Decimal64 value, Decimal64 sign) => new
Decimal64
(Number.CopySignDecimalIeee754<Decimal64, ulong>(value._value, sign._value));
1248
public static Decimal64 Max(Decimal64 x, Decimal64 y) => new
Decimal64
(Number.MaxDecimalIeee754<Decimal64, ulong>(x._value, y._value));
1254
public static Decimal64 MaxNative(Decimal64 x, Decimal64 y) => new
Decimal64
(Number.MaxNativeDecimalIeee754<Decimal64, ulong>(x._value, y._value));
1260
public static Decimal64 MaxNumber(Decimal64 x, Decimal64 y) => new
Decimal64
(Number.MaxNumberDecimalIeee754<Decimal64, ulong>(x._value, y._value));
1266
public static Decimal64 Min(Decimal64 x, Decimal64 y) => new
Decimal64
(Number.MinDecimalIeee754<Decimal64, ulong>(x._value, y._value));
1272
public static Decimal64 MinNative(Decimal64 x, Decimal64 y) => new
Decimal64
(Number.MinNativeDecimalIeee754<Decimal64, ulong>(x._value, y._value));
1278
public static Decimal64 MinNumber(Decimal64 x, Decimal64 y) => new
Decimal64
(Number.MinNumberDecimalIeee754<Decimal64, ulong>(x._value, y._value));
1751
static Decimal64 IDecimalIeee754ParseAndFormatInfo<Decimal64, ulong>.Construct(ulong value) => new
Decimal64
(value);
1807
static bool IDecimalIeee754ParseAndFormatInfo<Decimal64, ulong>.IsNaN(ulong decimalBits) => IsNaN(new
Decimal64
(decimalBits));
1809
static bool IDecimalIeee754ParseAndFormatInfo<Decimal64, ulong>.IsNegative(ulong decimalBits) => IsNegative(new
Decimal64
(decimalBits));
1811
static bool IDecimalIeee754ParseAndFormatInfo<Decimal64, ulong>.IsFinite(ulong decimalBits) => IsFinite(new
Decimal64
(decimalBits));
1813
static bool IDecimalIeee754ParseAndFormatInfo<Decimal64, ulong>.IsInfinity(ulong decimalBits) => IsInfinity(new
Decimal64
(decimalBits));
1815
static bool IDecimalIeee754ParseAndFormatInfo<Decimal64, ulong>.IsPositiveInfinity(ulong decimalBits) => IsPositiveInfinity(new
Decimal64
(decimalBits));
1817
static bool IDecimalIeee754ParseAndFormatInfo<Decimal64, ulong>.IsNegativeInfinity(ulong decimalBits) => IsNegativeInfinity(new
Decimal64
(decimalBits));