toLong

abstract fun toLong(): Long

Unwraps the value contained within this BigInt as a Long value.

If this BigInt value is greater than Long.MAX_VALUE or is less than Long.MIN_VALUE, an exception will be thrown.

Return

The value contained within this BigInt as a Long value.