The OpenD Programming Language

BigInt.toLong

struct BigInt
@safe pure nothrow const @nogc
long
toLong
()

Return Value

Type: long

The value of this BigInt as a long, or long.max/long.min if outside the representable range.

Examples

auto b = BigInt("12345");
long l = b.toLong();
assert(l == 12345);

Meta