• Converts a bigint (or string representation of a bigint) to a number by removing the trailing n. Please note that this can lead to loss of precision for very large bigints.

    Parameters

    • a: string | bigint

    Returns number