BigInt.opCast

T opCast(T : bool)() const pure nothrow @nogc @safe

Casts BigInt to bool.

Returns

true if the BigInt is non-zero, false if it's zero
T opCast(T)() if (isIntegral!T) const pure @safe

Casts BigInt to integral types (int, long, ulong, etc.).

Throws

ConvOverflowException if the value doesn't fit in the target type.

Returns

The BigInt value as the target integral type.
T opCast(T)() if (isFloatingPoint!T) const @safe nothrow @nogc

Casts BigInt to floating-point types (float, double, real).

Returns

The BigInt value as a floating-point type. May lose precision for

very large values.