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

float

float

§float(F 
type
:float float.F)
 => 
float float.F
:
numeric float.F

float -- floating point values


float is the abstract parent of concrete floating point features such as
f32 or f64.
convert a float value to i64 dropping any fraction.
the value must be in the range of i64
ceiling: the smallest integer greater or equal to this
floor: the greatest integer lower or equal to this
§infix %!(other F)
 => 
bool
:
Any 

redefines:

§infix *!(other F)
 => 
bool
:
Any 

redefines:


redefines:

§infix +!(other F)
 => 
bool
:
Any 

redefines:

§infix -!(other F)
 => 
bool
:
Any 

redefines:

§infix /!(other F)
 => 
bool
:
Any 

redefines:

preconditions for basic operations: true if the operation's result is
representable for the given values. For IEEE_754, all operations are
defined for all values.

redefines:


redefines:

round floating point number
ties to away (0.5 => 1; -0.5 => -1; etc.)

NYI this could be made faster, see here:
https://cs.opensource.google/go/go/+/refs/tags/go1.18.1:src/math/floor.go;l=79