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

◆ BitDecrement()

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

Definition at line 273 of file Math.cs.

274 {
275 long num = BitConverter.DoubleToInt64Bits(x);
276 if (((num >> 32) & 0x7FF00000) >= 2146435072)
277 {
278 if (num != 9218868437227405312L)
279 {
280 return x;
281 }
282 return double.MaxValue;
283 }
284 if (num == 0L)
285 {
286 return -5E-324;
287 }
288 num += ((num < 0) ? 1 : (-1));
289 return BitConverter.Int64BitsToDouble(num);
290 }
const double E
Definition Math.cs:14

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

Referenced by System.Double.BitDecrement().