### Floats
[
Datatype float-formats
Funcon binary32
Funcon binary64
Funcon binary128
Funcon decimal64
Funcon decimal128
Type floats
Funcon float
Funcon quiet-not-a-number Alias qNaN
Funcon signaling-not-a-number Alias sNaN
Funcon positive-infinity Alias pos-inf
Funcon negative-infinity Alias neg-inf
Funcon float-convert
Funcon decimal-float
Funcon float-equal
Funcon float-is-less
Funcon float-is-less-or-equal
Funcon float-is-greater
Funcon float-is-greater-or-equal
Funcon float-negate
Funcon float-absolute-value
Funcon float-add
Funcon float-subtract
Funcon float-multiply
Funcon float-multiply-add
Funcon float-divide
Funcon float-remainder
Funcon float-sqrt
Funcon float-integer-power
Funcon float-float-power
Funcon float-round-ties-to-even
Funcon float-round-ties-to-infinity
Funcon float-floor
Funcon float-ceiling
Funcon float-truncate
Funcon float-pi
Funcon float-e
Funcon float-log
Funcon float-log10
Funcon float-exp
Funcon float-sin
Funcon float-cos
Funcon float-tan
Funcon float-asin
Funcon float-acos
Funcon float-atan
Funcon float-sinh
Funcon float-cosh
Funcon float-tanh
Funcon float-asinh
Funcon float-acosh
Funcon float-atanh
Funcon float-atan2
]
*/
Datatype
float-formats ::= binary32 | binary64 | binary128 | decimal64 | decimal128
Built-in Type
floats(_:float-formats)
*/
Built-in Funcon
float(FF:float-formats,
_:bounded-integers(0, 1), _:natural-numbers, _:integers) : =>floats(FF)
*/
Built-in Funcon
quiet-not-a-number(FF:float-formats) : floats(FF)
Alias
qNaN = quiet-not-a-number
Built-in Funcon
signaling-not-a-number(FF:float-formats) : floats(FF)
Alias
sNaN = signaling-not-a-number
Built-in Funcon
positive-infinity(FF:float-formats) : floats(FF)
Alias
pos-inf = positive-infinity
Built-in Funcon
negative-infinity(FF:float-formats) : floats(FF)
Alias
neg-inf = negative-infinity
#### Conversions
Built-in Funcon
float-convert(FF1:float-formats,
FF2:float-formats, F:floats(FF1)) : =>floats(FF2)
Built-in Funcon
decimal-float(FF:float-formats,
_:strings, _:strings, _:strings) : =>floats(FF)
*/
#### Comparison
Built-in Funcon
float-equal(FF:float-formats,
_:floats(FF), _:floats(FF)) : =>booleans
Built-in Funcon
float-is-less(FF:float-formats,
_:floats(FF), _:floats(FF)) : =>booleans
Built-in Funcon
float-is-less-or-equal(FF:float-formats,
_:floats(FF), _:floats(FF)) : =>booleans
Built-in Funcon
float-is-greater(FF:float-formats,
_:floats(FF), _:floats(FF)) : =>booleans
Built-in Funcon
float-is-greater-or-equal(FF:float-formats,
_:floats(FF), _:floats(FF)) : =>booleans
#### Arithmetic
Built-in Funcon
float-negate(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-absolute-value(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-add(FF:float-formats, _:floats(FF), _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-subtract(FF:float-formats, _:floats(FF), _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-multiply(FF:float-formats, _:floats(FF), _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-multiply-add(FF:float-formats,
_:floats(FF), _:floats(FF), _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-divide(FF:float-formats, _:floats(FF), _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-remainder(FF:float-formats, _:floats(FF), _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-sqrt(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-integer-power(FF:float-formats, _:floats(FF), _:integers) : =>floats(FF)
Built-in Funcon
float-float-power(FF:float-formats, _:floats(FF), _:floats(FF)) : =>floats(FF)
#### Rounding
Built-in Funcon
float-round-ties-to-even(FF:float-formats, _:floats(FF)) : =>integers
Built-in Funcon
float-round-ties-to-infinity(FF:float-formats, _:floats(FF)) : =>integers
Built-in Funcon
float-floor(FF:float-formats, _:floats(FF)) : =>integers
Built-in Funcon
float-ceiling(FF:float-formats, _:floats(FF)) : =>integers
Built-in Funcon
float-truncate(FF:float-formats, _:floats(FF)) : =>integers
#### Miscellaneous
Built-in Funcon
float-pi(FF:float-formats) : =>floats(FF)
Built-in Funcon
float-e(FF:float-formats) : =>floats(FF)
Built-in Funcon
float-log(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-log10(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-exp(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-sin(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-cos(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-tan(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-asin(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-acos(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-atan(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-sinh(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-cosh(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-tanh(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-asinh(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-acosh(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-atanh(FF:float-formats, _:floats(FF)) : =>floats(FF)
Built-in Funcon
float-atan2(FF:float-formats, _:floats(FF), _:floats(FF)) : =>floats(FF)
/*
Floating-point numbers according to the IEEE 754 Standard (2008). See: - http://doi.org/10.1109/IEEESTD.2008.4610935 - https://en.wikipedia.org/wiki/IEEE_754