Function fromNumber

  • Converts a number to an U64 value

    Parameters

    • value: number | bigint

      The number to convert

    Returns U64_t

    The U64 representation of the number

    Throws

    if the value is not a safe integer, negative or too large for U64