10[TypeForwardedFrom(
"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
11public readonly
struct Double :
IComparable,
IConvertible,
ISpanFormattable,
IFormattable,
IComparable<double>,
IEquatable<double>,
IBinaryFloatingPoint<double>,
IBinaryNumber<double>,
IBitwiseOperators<double, double, double>,
INumber<double>,
IAdditionOperators<double, double, double>,
IAdditiveIdentity<double, double>,
IComparisonOperators<double, double>,
IEqualityOperators<double, double>,
IDecrementOperators<double>,
IDivisionOperators<double, double, double>,
IIncrementOperators<double>,
IModulusOperators<double, double, double>,
IMultiplicativeIdentity<double, double>,
IMultiplyOperators<double, double, double>,
ISpanParseable<double>,
IParseable<double>,
ISubtractionOperators<double, double, double>,
IUnaryNegationOperators<double, double>,
IUnaryPlusOperators<double, double>,
IFloatingPoint<double>,
ISignedNumber<double>,
IMinMaxValue<double>
15 public const double MinValue = -1.7976931348623157E+308;
17 public const double MaxValue = 1.7976931348623157E+308;
25 public const double NaN = 0.0 / 0.0;
27 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
30 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
33 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
36 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
39 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
42 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
45 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
48 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
51 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
54 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
57 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
60 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
63 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
66 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
69 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
77 return (num & 0x7FFFFFFFFFFFFFFFL) < 9218868437227405312
L;
85 return (num & 0x7FFFFFFFFFFFFFFFL) == 9218868437227405312
L;
90 public static bool IsNaN(
double d)
106 return d ==
double.NegativeInfinity;
113 num &= 0x7FFFFFFFFFFFFFFF
L;
114 if (num < 9218868437227405312
L && num != 0
L)
116 return (num & 0x7FF0000000000000L) != 0;
125 return d ==
double.PositiveInfinity;
132 num &= 0x7FFFFFFFFFFFFFFF
L;
133 if (num < 9218868437227405312
L && num != 0
L)
135 return (num & 0x7FF0000000000000L) == 0;
142 return (
int)(bits >> 52) & 0x7FF;
147 return bits & 0xFFFFFFFFFFFFFuL;
156 if (
value is
double num)
208 public override bool Equals([NotNullWhen(
true)]
object?
obj)
210 if (!(
obj is
double num))
228 return left == right;
234 return left != right;
252 return left <= right;
258 return left >= right;
278 if (((num - 1) & 0x7FFFFFFFFFFFFFFFL) >= 9218868437227405312
L)
280 num &= 0x7FF0000000000000
L;
282 return (
int)num ^ (int)(num >> 32);
354 public static bool TryParse([NotNullWhen(
true)]
string?
s, out
double result)
471 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
477 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
481 uint num2 = (uint)(
int)(num >> 52) & 0x7FFu;
482 ulong num3 = num & 0xFFFFFFFFFFFFFuL;
483 if (
value > 0.0 && num2 != 0 && num2 != 2047)
490 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
496 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
503 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
510 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
517 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
524 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
530 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
533 return left <= right;
536 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
542 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
545 return left >= right;
548 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
554 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
560 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
563 return left == right;
566 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
569 return left != right;
572 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
578 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
584 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
590 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
596 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
602 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
608 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
614 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
620 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
626 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
632 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
638 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
644 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
650 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
656 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
662 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
668 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
674 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
680 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
686 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
692 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
698 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
704 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
710 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
716 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
722 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
728 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
734 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
737 return Math.
Round(x,
int.Create(digits));
740 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
746 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
749 return Math.
Round(x,
int.Create(digits), mode);
752 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
758 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
764 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
770 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
776 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
782 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
788 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
794 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
800 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
806 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
812 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
818 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
824 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
830 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
836 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
842 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
848 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
854 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
860 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
866 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
873 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
876 if (typeof(TOther) == typeof(
byte))
878 return (
int)(byte)(
object)
value;
880 if (typeof(TOther) == typeof(
char))
882 return (
int)(char)(
object)
value;
884 if (typeof(TOther) == typeof(decimal))
886 return (
double)(decimal)(
object)
value;
888 if (typeof(TOther) == typeof(
double))
890 return (
double)(object)
value;
892 if (typeof(TOther) == typeof(
short))
894 return (
short)(object)
value;
896 if (typeof(TOther) == typeof(
int))
898 return (
int)(object)
value;
900 if (typeof(TOther) == typeof(
long))
902 return (
long)(object)
value;
904 if (typeof(TOther) == typeof(
IntPtr))
908 if (typeof(TOther) == typeof(sbyte))
910 return (sbyte)(object)
value;
912 if (typeof(TOther) == typeof(
float))
914 return (
float)(object)
value;
916 if (typeof(TOther) == typeof(ushort))
918 return (
int)(ushort)(
object)
value;
920 if (typeof(TOther) == typeof(uint))
922 return (uint)(object)
value;
924 if (typeof(TOther) == typeof(ulong))
926 return (ulong)(object)
value;
928 if (typeof(TOther) == typeof(
UIntPtr))
937 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
940 if (typeof(TOther) == typeof(
byte))
942 return (
int)(byte)(
object)
value;
944 if (typeof(TOther) == typeof(
char))
946 return (
int)(char)(
object)
value;
948 if (typeof(TOther) == typeof(decimal))
950 return (
double)(decimal)(
object)
value;
952 if (typeof(TOther) == typeof(
double))
954 return (
double)(object)
value;
956 if (typeof(TOther) == typeof(
short))
958 return (
short)(object)
value;
960 if (typeof(TOther) == typeof(
int))
962 return (
int)(object)
value;
964 if (typeof(TOther) == typeof(
long))
966 return (
long)(object)
value;
968 if (typeof(TOther) == typeof(
IntPtr))
972 if (typeof(TOther) == typeof(sbyte))
974 return (sbyte)(object)
value;
976 if (typeof(TOther) == typeof(
float))
978 return (
float)(object)
value;
980 if (typeof(TOther) == typeof(ushort))
982 return (
int)(ushort)(
object)
value;
984 if (typeof(TOther) == typeof(uint))
986 return (uint)(object)
value;
988 if (typeof(TOther) == typeof(ulong))
990 return (ulong)(object)
value;
992 if (typeof(TOther) == typeof(
UIntPtr))
1001 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
1004 if (typeof(TOther) == typeof(
byte))
1006 return (
int)(byte)(
object)
value;
1008 if (typeof(TOther) == typeof(
char))
1010 return (
int)(char)(
object)
value;
1012 if (typeof(TOther) == typeof(decimal))
1014 return (
double)(decimal)(
object)
value;
1016 if (typeof(TOther) == typeof(
double))
1018 return (
double)(object)
value;
1020 if (typeof(TOther) == typeof(
short))
1022 return (
short)(object)
value;
1024 if (typeof(TOther) == typeof(
int))
1026 return (
int)(object)
value;
1028 if (typeof(TOther) == typeof(
long))
1030 return (
long)(object)
value;
1032 if (typeof(TOther) == typeof(
IntPtr))
1036 if (typeof(TOther) == typeof(sbyte))
1038 return (sbyte)(object)
value;
1040 if (typeof(TOther) == typeof(
float))
1042 return (
float)(object)
value;
1044 if (typeof(TOther) == typeof(ushort))
1046 return (
int)(ushort)(
object)
value;
1048 if (typeof(TOther) == typeof(uint))
1050 return (uint)(object)
value;
1052 if (typeof(TOther) == typeof(ulong))
1054 return (ulong)(object)
value;
1056 if (typeof(TOther) == typeof(
UIntPtr))
1064 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
1067 return (
Quotient: left / right, Remainder: left % right);
1070 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
1076 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
1082 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
1085 return Parse(
s, style, provider);
1088 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
1091 return Parse(
s, style, provider);
1094 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
1101 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
1104 if (typeof(TOther) == typeof(
byte))
1106 result = (int)(
byte)(object)
value;
1109 if (typeof(TOther) == typeof(
char))
1111 result = (int)(
char)(object)
value;
1114 if (typeof(TOther) == typeof(decimal))
1116 result = (double)(decimal)(object)
value;
1119 if (typeof(TOther) == typeof(
double))
1121 result = (double)(
object)
value;
1124 if (typeof(TOther) == typeof(
short))
1129 if (typeof(TOther) == typeof(
int))
1131 result = (int)(
object)
value;
1134 if (typeof(TOther) == typeof(
long))
1136 result = (long)(
object)
value;
1139 if (typeof(TOther) == typeof(
IntPtr))
1144 if (typeof(TOther) == typeof(sbyte))
1146 result = (sbyte)(
object)
value;
1149 if (typeof(TOther) == typeof(
float))
1151 result = (float)(
object)
value;
1154 if (typeof(TOther) == typeof(ushort))
1156 result = (int)(ushort)(object)
value;
1159 if (typeof(TOther) == typeof(uint))
1161 result = (uint)(
object)
value;
1164 if (typeof(TOther) == typeof(ulong))
1166 result = (ulong)(
object)
value;
1169 if (typeof(TOther) == typeof(
UIntPtr))
1179 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
1182 return TryParse(
s, style, provider, out result);
1185 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
1188 return TryParse(
s, style, provider, out result);
1191 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
1194 return Parse(
s, provider);
1197 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
1203 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
1209 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
1215 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
1218 return left - right;
1221 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
1227 [RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
static ulong DoubleToUInt64Bits(double value)
static unsafe long DoubleToInt64Bits(double value)
static double UInt64BitsToDouble(ulong value)
static decimal ToDecimal(object? value)
static long ToInt64(object? value)
static float ToSingle(object? value)
static int ToInt32(object? value)
static short ToInt16(object? value)
static byte ToByte(object? value)
static uint ToUInt32(object? value)
static ulong ToUInt64(object? value)
static ushort ToUInt16(object? value)
static sbyte ToSByte(object? value)
static bool ToBoolean([NotNullWhen(true)] object? value)
static object DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
static double Atan(double d)
static double Log2(double x)
static byte Clamp(byte value, byte min, byte max)
static double Acos(double d)
static decimal Truncate(decimal d)
static double Cos(double d)
static double Exp(double d)
static double Tanh(double value)
static double Atanh(double d)
static byte Min(byte val1, byte val2)
static double ScaleB(double x, int n)
static double CopySign(double x, double y)
static double Tan(double a)
static double Atan2(double y, double x)
static double Cbrt(double d)
static double Sqrt(double d)
static double Asin(double d)
static double Pow(double x, double y)
static double MinMagnitude(double x, double y)
static decimal Round(decimal d)
static double Ceiling(double a)
static double Asinh(double d)
static double IEEERemainder(double x, double y)
static double Log10(double d)
static double BitDecrement(double x)
static double Log(double d)
static double Acosh(double d)
static double Abs(double value)
static double Sin(double a)
static double BitIncrement(double x)
static double Sinh(double value)
static double Floor(double d)
static double Cosh(double value)
static double FusedMultiplyAdd(double x, double y, double z)
static double MaxMagnitude(double x, double y)
static int Sign(decimal value)
static byte Max(byte val1, byte val2)
static int ILogB(double x)
static unsafe bool TryParseDouble(ReadOnlySpan< char > value, NumberStyles styles, NumberFormatInfo info, out double result)
static bool TryFormatDouble(double value, ReadOnlySpan< char > format, NumberFormatInfo info, Span< char > destination, out int charsWritten)
static double ParseDouble(ReadOnlySpan< char > value, NumberStyles styles, NumberFormatInfo info)
static string FormatDouble(double value, string format, NumberFormatInfo info)
static string InvalidCast_FromTo
static string Arg_MustBeDouble
static string Format(string resourceFormat, object p1)
static void ThrowNotSupportedException(ExceptionResource resource)
static void ThrowArgumentNullException(string name)
static TResult AdditiveIdentity
static bool IsPow2(TSelf value)
static TSelf Log2(TSelf value)
short ToInt16(IFormatProvider? provider)
char ToChar(IFormatProvider? provider)
byte ToByte(IFormatProvider? provider)
decimal ToDecimal(IFormatProvider? provider)
object ToType(Type conversionType, IFormatProvider? provider)
uint ToUInt32(IFormatProvider? provider)
DateTime ToDateTime(IFormatProvider? provider)
int ToInt32(IFormatProvider? provider)
long ToInt64(IFormatProvider? provider)
ushort ToUInt16(IFormatProvider? provider)
double ToDouble(IFormatProvider? provider)
float ToSingle(IFormatProvider? provider)
sbyte ToSByte(IFormatProvider? provider)
ulong ToUInt64(IFormatProvider? provider)
bool ToBoolean(IFormatProvider? provider)
static bool IsNaN(TSelf value)
static TSelf CopySign(TSelf x, TSelf y)
static bool IsPositiveInfinity(TSelf value)
static TSelf Acosh(TSelf x)
static TSelf MinMagnitude(TSelf x, TSelf y)
static TSelf Log10(TSelf x)
static TSelf Ceiling(TSelf x)
static bool IsFinite(TSelf value)
static bool IsNegativeInfinity(TSelf value)
static TSelf MaxMagnitude(TSelf x, TSelf y)
static TSelf PositiveInfinity
static TSelf IEEERemainder(TSelf left, TSelf right)
static TSelf Pow(TSelf x, TSelf y)
static TSelf Asin(TSelf x)
static TSelf Floor(TSelf x)
static TSelf Truncate(TSelf x)
static TSelf Asinh(TSelf x)
static TSelf Atanh(TSelf x)
static TSelf NegativeZero
static TSelf Log(TSelf x)
static TSelf Cbrt(TSelf x)
static TSelf BitIncrement(TSelf x)
static TSelf Tan(TSelf x)
static TSelf Sinh(TSelf x)
static bool IsInfinity(TSelf value)
static bool IsSubnormal(TSelf value)
static TSelf Tanh(TSelf x)
static TSelf Exp(TSelf x)
static bool IsNegative(TSelf value)
static TSelf Atan(TSelf x)
static TSelf Sqrt(TSelf x)
static TSelf BitDecrement(TSelf x)
static TSelf FusedMultiplyAdd(TSelf left, TSelf right, TSelf addend)
static TSelf Sin(TSelf x)
static TSelf Acos(TSelf x)
static TSelf Round(TSelf x)
static bool IsNormal(TSelf value)
static TSelf Atan2(TSelf y, TSelf x)
static TSelf Cos(TSelf x)
static TSelf Cosh(TSelf x)
static TSelf NegativeInfinity
static TSelf Log2(TSelf x)
static TResult MultiplicativeIdentity
static TSelf Max(TSelf x, TSelf y)
static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out TSelf result)
static TSelf Parse(string s, NumberStyles style, IFormatProvider? provider)
static TSelf Sign(TSelf value)
static TSelf Min(TSelf x, TSelf y)
static TSelf Abs(TSelf value)
static TSelf Clamp(TSelf value, TSelf min, TSelf max)
static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out TSelf result)
static TSelf Parse(string s, IFormatProvider? provider)
static bool TryParse(ReadOnlySpan< char > s, IFormatProvider? provider, out TSelf result)
static TSelf Parse(ReadOnlySpan< char > s, IFormatProvider? provider)
static bool operator==(double left, double right)
string ToString(string? format, IFormatProvider? provider)
static bool IsNegativeInfinity(double d)
static bool TryParse(ReadOnlySpan< char > s, NumberStyles style, NumberFormatInfo info, out double result)
bool TryFormat(Span< char > destination, out int charsWritten, ReadOnlySpan< char > format=default(ReadOnlySpan< char >), IFormatProvider? provider=null)
static double double Remainder INumber< double >. DivRem(double left, double right)
static bool TryParse(ReadOnlySpan< char > s, out double result)
static double Parse(ReadOnlySpan< char > s, NumberStyles style=NumberStyles.Float|NumberStyles.AllowThousands, IFormatProvider? provider=null)
override int GetHashCode()
static bool TryParse(ReadOnlySpan< char > s, NumberStyles style, IFormatProvider? provider, out double result)
static bool IsNormal(double d)
override bool Equals([NotNullWhen(true)] object? obj)
static bool operator>(double left, double right)
static bool IsFinite(double d)
static double Parse(string s)
static bool operator<=(double left, double right)
string ToString(string? format)
static bool IsPositiveInfinity(double d)
static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out double result)
static bool IsInfinity(double d)
override string ToString()
static bool IsSubnormal(double d)
static bool operator!=(double left, double right)
string ToString(IFormatProvider? provider)
static bool IsNegative(double d)
static bool IsNaN(double d)
static double Parse(string s, IFormatProvider? provider)
static int ExtractExponentFromBits(ulong bits)
static double Parse(string s, NumberStyles style)
static bool TryParse([NotNullWhen(true)] string? s, out double result)
static double IFloatingPoint< double >. E
static ulong ExtractSignificandFromBits(ulong bits)
int CompareTo(double value)
int CompareTo(object? value)
const double NegativeInfinity
static double Parse(string s, NumberStyles style, IFormatProvider? provider)
static bool operator<(double left, double right)
const double PositiveInfinity
static bool operator>=(double left, double right)