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

int

🌌int

int -- signed integer values of arbitrary size


redefines integer.asString:
convert this to a decimal number in a string. If negative, add "-" as
the first character.

redefines Object.asString:

modulo, returns the remainder of the
division of this int by other
redefines integer.infix %:
division remainder
redefines numeric.infix %:
basic operations: 'infix %' (division remainder)


redefines numeric.infix %!:

multiply this int by other
redefines numeric.infix *:
basic operations: 'infix *' (multiplication)


redefines numeric.infix *!:

exponentation operator:
this int to the power of other
redefines numeric.infix **:
basic operations: 'infix **' (exponentiation)


redefines numeric.infix **!:


redefines numeric.infix **?:


redefines numeric.infix **^:

add this int to other
redefines numeric.infix +:
basic operations: 'infix +' (addition)


redefines numeric.infix +!:

subtract other from this int
redefines numeric.infix -:
basic operations: 'infix -' (substraction)


redefines numeric.infix -!:

divide this int by other
redefines numeric.infix /:
basic operations: 'infix /' (division)


redefines numeric.infix /!:

is less or equal
redefines partiallyOrdered.infix <=:
does this come before other?

are these two ints equal?
redefines numeric.infix ==:
comparison


redefines hasInterval.max:


redefines numerics.name:
name of this numeric type, e.g., "u64"

normalize the sign => no minus zero


redefines numerics.one:
identity element for 'infix *'


redefines partiallyOrdered.orderedThis:
get value of type P.

NYI: Once Eiffel-style 'like this' works, we can use 'like this' instead of
T and no longer need this feature.


redefines numeric.prefix -:
basic operations: 'prefix -' (negation)


redefines numeric.prefix -!:

the sign of the result of the
multiplication or division of thiz and other


redefines numeric.thiz:
get numeric.this value of type T. This is used for a generic implemention
of some features (e.g. prefix -, abs


redefines numerics.zero:
identity element for 'infix +'