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

◆ Decimal() [11/13]

System.Decimal.Decimal ( int lo,
int mid,
int hi,
bool isNegative,
byte scale )
inline

Definition at line 2254 of file Decimal.cs.

2255 {
2256 if (scale > 28)
2257 {
2258 throw new ArgumentOutOfRangeException("scale", SR.ArgumentOutOfRange_DecimalScale);
2259 }
2260 _lo64 = (uint)lo + ((ulong)(uint)mid << 32);
2261 _hi32 = (uint)hi;
2262 _flags = scale << 16;
2263 if (isNegative)
2264 {
2265 _flags |= int.MinValue;
2266 }
2267 }
readonly uint _hi32
Definition Decimal.cs:2073
readonly int _flags
Definition Decimal.cs:2071
readonly ulong _lo64
Definition Decimal.cs:2075

References System.Decimal._flags, System.Decimal._hi32, System.Decimal._lo64, System.SR.ArgumentOutOfRange_DecimalScale, and System.Runtime.Serialization.Dictionary.