Function fromNumber

  • Converts a number to an U32 value

    Parameters

    • value: number

      The number to convert

    Returns U32_t

    The U32 representation of the number

    Throws

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