BigInt.getDigit

T getDigit(T = ulong)(size_t n) const pure nothrow @nogc @safe

Returns the n-th digit (limb) of the BigInt magnitude.

This method provides access to the internal representation of the BigInt as an array of digits (limbs) in little-endian order.

Parameters

nThe index of the digit to retrieve (0-based)

Returns

The n-th digit as type T (default ulong). Returns 0 if n is beyond

the current number of limbs.