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

◆ FromOACurrency()

static decimal System.Decimal.FromOACurrency ( long cy)
inlinestatic

Definition at line 2194 of file Decimal.cs.

2195 {
2196 bool isNegative = false;
2197 ulong num;
2198 if (cy < 0)
2199 {
2200 isNegative = true;
2201 num = (ulong)(-cy);
2202 }
2203 else
2204 {
2205 num = (ulong)cy;
2206 }
2207 int num2 = 4;
2208 if (num != 0L)
2209 {
2210 while (num2 != 0 && num % 10 == 0L)
2211 {
2212 num2--;
2213 num /= 10;
2214 }
2215 }
2216 return new decimal((int)num, (int)(num >> 32), 0, isNegative, (byte)num2);
2217 }

References System.Runtime.Serialization.Dictionary, and System.L.

Referenced by System.Decimal.Decimal().