public static bool AsUInt32(BigInteger self, out uint res) { return self.AsUInt32(out res); }
internal static UInt32 ToUInt32(BigInteger value) { UInt32 result; if (value.AsUInt32(out result)) { return result; } throw RubyExceptions.CreateRangeError("number too big to convert into System::UInt32"); }
public static int Compare(BigInteger x, uint y) { uint ix; if (x.AsUInt32(out ix)) { return ix == y ? 0 : ix > y ? 1 : -1; } return BigInteger.Compare(x, y); }