# FixUtil Documentation

Back to summary

`import "util/unsigned";`

These functions provide unsigned arithmetic on 32-bit integers.

## Global functions

`function uint_add(a: Integer, b: Integer): Integer`
  Adds two unsigned integers and returns the result, throwing an error on overflow.
`function uint_sub(a: Integer, b: Integer): Integer`
  Subtracts two unsigned integers and returns the result, throwing an error on overflow.
`function uint_mul(a: Integer, b: Integer): Integer`
  Multiplies two unsigned integers and returns the result, throwing an error on overflow.
`function uint_div(a: Integer, b: Integer): Integer`
  Divides two unsigned integers and returns the quotient.
`function uint_rem(a: Integer, b: Integer): Integer`
  Divides two unsigned integers and returns the remainder.
`function uint_min(a: Integer, b: Integer): Integer`
  Returns the smaller number.
`function uint_max(a: Integer, b: Integer): Integer`
  Returns the bigger number.
`function uint_cmp_lt(a: Integer, b: Integer): Boolean
function uint_cmp_le(a: Integer, b: Integer): Boolean
function uint_cmp_gt(a: Integer, b: Integer): Boolean
function uint_cmp_ge(a: Integer, b: Integer): Boolean
`
  Returns the result of unsigned comparison. There are 4 variants:
  lt - less than
  le - less than or equal
  gt - greater than
  ge - greater than or equal
`function uint_to_string(value: Integer): String`
  Returns the string representation of the value.