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

f32

🌌f32

f32 -- 32 bit floating point values


f32 are binary32-numbers as defined in the IEEE 754-2019 standard, see
https://ieeexplore.ieee.org/servlet/opac?punumber=8766227

conversion

convert this to a string.

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

redefines Object.asString:

casting bit representation to u32

create hash code from this number
redefines hasHash.hash:
create hash code for this instance


redefines numeric.infix !=:


redefines integer.infix %:
division remainder
redefines numeric.infix %:
basic operations: 'infix %' (division remainder)


redefines numeric.infix *:
basic operations: 'infix *' (multiplication)


redefines numeric.infix **:
basic operations: 'infix **' (exponentiation)


redefines numeric.infix +:
basic operations: 'infix +' (addition)


redefines numeric.infix -:
basic operations: 'infix -' (substraction)


redefines numeric.infix /:
basic operations: 'infix /' (division)


redefines ordered.infix <:
does this come strictly before other?


redefines partiallyOrdered.infix <=:
does this come before other?

comparison
redefines numeric.infix ==:
comparison


redefines ordered.infix >:
does this come strictly after other?


redefines ordered.infix >=:
does this come after other?


redefines partiallyOrdered.orderedThis:
get value of type T.

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

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


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