Function fromNumber

  • Converts a number to an U8 value

    Parameters

    • value: number

      The number to convert

    Returns U8_t

    The U8 representation of the number

    Throws

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