public static object ReduceBigInt(BigInt val) { if (val.Bipart == null) return num(val.Lpart); return val.Bipart; }