Function spectreToSompi

  • Convert a Spectre string to Sompi represented by bigint. This function provides correct precision handling and can be used to parse user input.

    Parameters

    • spectre: string

    Returns bigint | undefined