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

◆ ToUInt32() [1/3]

static uint System.Decimal.ToUInt32 ( decimal d)
inlinestatic

Definition at line 2758 of file Decimal.cs.

2759 {
2760 Truncate(ref d);
2761 if ((d.High | d.Mid) == 0)
2762 {
2763 uint low = d.Low;
2764 if (!d.IsNegative || low == 0)
2765 {
2766 return low;
2767 }
2768 }
2769 throw new OverflowException(SR.Overflow_UInt32);
2770 }
static decimal Truncate(decimal d)
Definition Decimal.cs:2792

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

Referenced by System.Decimal.operator uint(), System.Decimal.ToByte(), and System.Decimal.ToUInt16().