1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-21 01:18:02 +02:00

Negative zero fix

This commit is contained in:
Brian Fiete 2021-12-15 14:41:30 -05:00
parent a3b761ab26
commit ae186433cc

View file

@ -21,8 +21,7 @@ namespace System
public const double NegativeInfinity = (double)(- 1.0 / (double)(0.0)); public const double NegativeInfinity = (double)(- 1.0 / (double)(0.0));
public const double PositiveInfinity = (double)1.0 / (double)(0.0); public const double PositiveInfinity = (double)1.0 / (double)(0.0);
public const double NaN = (double)0.0 / (double)0.0; public const double NaN = (double)0.0 / (double)0.0;
public const double NegativeZero = -0.0;
static double NegativeZero = BitConverter.Convert<int64, double>(0x8000000000000000UL);
public static int operator<=>(Double a, Double b) public static int operator<=>(Double a, Double b)
{ {