Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ BitIncrement()

static double System.Math.BitIncrement ( double x)
inlinestatic

Definition at line 292 of file Math.cs.

293 {
294 long num = BitConverter.DoubleToInt64Bits(x);
295 if (((num >> 32) & 0x7FF00000) >= 2146435072)
296 {
297 if (num != -4503599627370496L)
298 {
299 return x;
300 }
301 return double.MinValue;
302 }
303 if (num == long.MinValue)
304 {
305 return double.Epsilon;
306 }
307 num += ((num >= 0) ? 1 : (-1));
308 return BitConverter.Int64BitsToDouble(num);
309 }

References System.BitConverter.DoubleToInt64Bits(), System.BitConverter.Int64BitsToDouble(), and System.L.

Referenced by System.Double.BitIncrement().