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

◆ ToUInt64() [1/3]

static ulong System.Decimal.ToUInt64 ( decimal d)
inlinestatic

Definition at line 2773 of file Decimal.cs.

2774 {
2775 Truncate(ref d);
2776 if (d.High == 0)
2777 {
2778 ulong low = d.Low64;
2779 if (!d.IsNegative || low == 0L)
2780 {
2781 return low;
2782 }
2783 }
2784 throw new OverflowException(SR.Overflow_UInt64);
2785 }
static decimal Truncate(decimal d)
Definition Decimal.cs:2792

References System.Runtime.Serialization.Dictionary, System.L, System.SR.Overflow_UInt64, and System.Decimal.Truncate().

Referenced by System.Decimal.operator ulong().