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

◆ CompareTo() [1/3]

int System.Xml.Xsl.XPathConvert.BigInteger.CompareTo ( object obj)
inline

Definition at line 1155 of file XPathConvert.cs.

1156 {
1158 if (_length > bigInteger._length)
1159 {
1160 return 1;
1161 }
1162 if (_length < bigInteger._length)
1163 {
1164 return -1;
1165 }
1166 if (_length == 0)
1167 {
1168 return 0;
1169 }
1170 int num = _length - 1;
1171 while (_digits[num] == bigInteger._digits[num])
1172 {
1173 if (num == 0)
1174 {
1175 return 0;
1176 }
1177 num--;
1178 }
1179 if (_digits[num] <= bigInteger._digits[num])
1180 {
1181 return -1;
1182 }
1183 return 1;
1184 }

References System.Xml.Xsl.XPathConvert.BigInteger.BigInteger(), System.Xml.Xsl.XPathConvert.BigInteger._digits, System.Xml.Xsl.XPathConvert.BigInteger._length, System.Xml.Dictionary, and System.obj.

Referenced by System.Xml.Xsl.XPathConvert.BigInteger.DivRem().