Function fromNumber

  • Converts a number to an I64 value

    Parameters

    • value: number | bigint

      The number to convert

    Returns I64_t

    The I64 representation of the number

    Throws

    if the value is not a safe integer or out of range for I64