Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

uint

uint

unsigned integer of arbitrary size, including zero
represented by its bit sequence

Functions

bitwise and

redefines:

bitwise or

redefines:

bitwise xor

redefines:

add two unsigned ints

redefines:

NYI make faster: https://en.wikipedia.org/wiki/Multiplication_algorithm#Computational_complexity_of_multiplication
multiply these unsigned ints

redefines:

subtract other from this unsigned int

redefines:

divide these unsigned ints

redefines:

modulo
returns the remainder of the division
exponentation operator:
this uint to the power of other

redefines:

this uint as an i64

redefines:


redefines:


redefines:


redefines:


redefines:


redefines:


redefines:

this uint as an i32
shift right

redefines:

shift left

redefines:

this uint as an u8

redefines:

this uint as an u32
this uint as an u64
this uint as an int

redefines:


redefines:

the highest 1 bit in this integer
example: uint 0 => 0
example: uint 1 => 1
example: uint 8 => 4
does this uint fit in 32 bits?
does this uint fit in 64 bits?

Type Features

total order
equality: are these unsigned integers equal?

redefines:


redefines: