FloatingPoint[A: FloatingPoint[A] val]¶
Implements¶
- Real[A] val
Constructors¶
min_normalised¶
Returns¶
- FloatingPoint[A] val^
epsilon¶
Returns¶
- FloatingPoint[A] val^
create¶
Parameters¶
- value: A
Returns¶
- Real[A] val^
from[B: ((I8 val | I16 val | I32 val | I64 val | I128 val | ILong val | ISize val | U8 val | U16 val | U32 val | U64 val | U128 val | ULong val | USize val | F32 val | F64 val) & Real[B] val)]¶
new val from[B: ((I8 val | I16 val | I32 val |
I64 val | I128 val | ILong val |
ISize val | U8 val | U16 val |
U32 val | U64 val | U128 val |
ULong val | USize val | F32 val |
F64 val) & Real[B] val)](
a: B)
: Real[A] val^
Parameters¶
- a: B
Returns¶
- Real[A] val^
min_value¶
Returns¶
- Real[A] val^
max_value¶
Returns¶
- Real[A] val^
Public Functions¶
radix¶
Returns¶
- U8 val
precision2¶
Returns¶
- U8 val
precision10¶
Returns¶
- U8 val
min_exp2¶
Returns¶
- I16 val
min_exp10¶
Returns¶
- I16 val
max_exp2¶
Returns¶
- I16 val
max_exp10¶
Returns¶
- I16 val
add_unsafe¶
Unsafe operation. If any input or output of the operation is +/- infinity or NaN, the result is undefined. The operation isn't required to fully comply to IEEE 754 semantics.
Parameters¶
- y: A
Returns¶
- A
sub_unsafe¶
Unsafe operation. If any input or output of the operation is +/- infinity or NaN, the result is undefined. The operation isn't required to fully comply to IEEE 754 semantics.
Parameters¶
- y: A
Returns¶
- A
mul_unsafe¶
Unsafe operation. If any input or output of the operation is +/- infinity or NaN, the result is undefined. The operation isn't required to fully comply to IEEE 754 semantics.
Parameters¶
- y: A
Returns¶
- A
div_unsafe¶
Unsafe operation. If any input or output of the operation is +/- infinity or NaN, the result is undefined. The operation isn't required to fully comply to IEEE 754 semantics.
Parameters¶
- y: A
Returns¶
- A
fld_unsafe¶
Unsafe operation. If any input or output of the operation is +/- infinity or NaN, the result is undefined. The operation isn't required to fully comply to IEEE 754 semantics.
Parameters¶
- y: A
Returns¶
- A
divrem_unsafe¶
Unsafe operation. If any input or output of the operation is +/- infinity or NaN, the result is undefined. The operation isn't required to fully comply to IEEE 754 semantics.
Parameters¶
- y: A
Returns¶
- (A , A)
rem_unsafe¶
Unsafe operation. If any input or output of the operation is +/- infinity or NaN, the result is undefined. The operation isn't required to fully comply to IEEE 754 semantics.
Parameters¶
- y: A
Returns¶
- A
mod_unsafe¶
Unsafe operation. If any input or output of the operation is +/- infinity or NaN, the result is undefined. The operation isn't required to fully comply to IEEE 754 semantics.
Parameters¶
- y: A
Returns¶
- A
neg_unsafe¶
Unsafe operation. If any input or output of the operation is +/- infinity or NaN, the result is undefined. The operation isn't required to fully comply to IEEE 754 semantics.
Returns¶
- A
eq_unsafe¶
Unsafe operation. If any input of the operation is +/- infinity or NaN, the result is undefined. The operation isn't required to fully comply to IEEE 754 semantics.
Parameters¶
- y: box->A
Returns¶
- Bool val
ne_unsafe¶
Unsafe operation. If any input of the operation is +/- infinity or NaN, the result is undefined. The operation isn't required to fully comply to IEEE 754 semantics.
Parameters¶
- y: box->A
Returns¶
- Bool val
lt_unsafe¶
Unsafe operation. If any input of the operation is +/- infinity or NaN, the result is undefined. The operation isn't required to fully comply to IEEE 754 semantics.
Parameters¶
- y: box->A
Returns¶
- Bool val
le_unsafe¶
Unsafe operation. If any input of the operation is +/- infinity or NaN, the result is undefined. The operation isn't required to fully comply to IEEE 754 semantics.
Parameters¶
- y: box->A
Returns¶
- Bool val
ge_unsafe¶
Unsafe operation. If any input of the operation is +/- infinity or NaN, the result is undefined. The operation isn't required to fully comply to IEEE 754 semantics.
Parameters¶
- y: box->A
Returns¶
- Bool val
gt_unsafe¶
Unsafe operation. If any input of the operation is +/- infinity or NaN, the result is undefined. The operation isn't required to fully comply to IEEE 754 semantics.
Parameters¶
- y: box->A
Returns¶
- Bool val
abs¶
Returns¶
- A
ceil¶
Returns¶
- A
floor¶
Returns¶
- A
round¶
Returns¶
- A
trunc¶
Returns¶
- A
finite¶
Returns¶
- Bool val
infinite¶
Returns¶
- Bool val
nan¶
Returns¶
- Bool val
ldexp¶
Parameters¶
- x: A
- exponent: I32 val
Returns¶
- A
frexp¶
Returns¶
- (A , U32 val)
log¶
Returns¶
- A
log2¶
Returns¶
- A
log10¶
Returns¶
- A
logb¶
Returns¶
- A
pow¶
Parameters¶
- y: A
Returns¶
- A
powi¶
Parameters¶
- y: I32 val
Returns¶
- A
sqrt¶
Returns¶
- A
sqrt_unsafe¶
Unsafe operation. If this is negative, the result is undefined.
Returns¶
- A
cbrt¶
Returns¶
- A
exp¶
Returns¶
- A
exp2¶
Returns¶
- A
cos¶
Returns¶
- A
sin¶
Returns¶
- A
tan¶
Returns¶
- A
cosh¶
Returns¶
- A
sinh¶
Returns¶
- A
tanh¶
Returns¶
- A
acos¶
Returns¶
- A
asin¶
Returns¶
- A
atan¶
Returns¶
- A
atan2¶
Parameters¶
- y: A
Returns¶
- A
acosh¶
Returns¶
- A
asinh¶
Returns¶
- A
atanh¶
Returns¶
- A
copysign¶
Parameters¶
- sign: A
Returns¶
- A
string¶
Returns¶
- String iso^
add¶
Parameters¶
- y: A
Returns¶
- A
sub¶
Parameters¶
- y: A
Returns¶
- A
mul¶
Parameters¶
- y: A
Returns¶
- A
div¶
Parameters¶
- y: A
Returns¶
- A
divrem¶
Parameters¶
- y: A
Returns¶
- (A , A)
rem¶
Parameters¶
- y: A
Returns¶
- A
neg¶
Returns¶
- A
fld¶
Parameters¶
- y: A
Returns¶
- A
mod¶
Parameters¶
- y: A
Returns¶
- A
eq¶
Parameters¶
- y: box->A
Returns¶
- Bool val
ne¶
Parameters¶
- y: box->A
Returns¶
- Bool val
lt¶
Parameters¶
- y: box->A
Returns¶
- Bool val
le¶
Parameters¶
- y: box->A
Returns¶
- Bool val
ge¶
Parameters¶
- y: box->A
Returns¶
- Bool val
gt¶
Parameters¶
- y: box->A
Returns¶
- Bool val
min¶
Parameters¶
- y: A
Returns¶
- A
max¶
Parameters¶
- y: A
Returns¶
- A
hash¶
Returns¶
- USize val
hash64¶
Returns¶
- U64 val
i8¶
Returns¶
- I8 val
i16¶
Returns¶
- I16 val
i32¶
Returns¶
- I32 val
i64¶
Returns¶
- I64 val
i128¶
Returns¶
- I128 val
ilong¶
Returns¶
- ILong val
isize¶
Returns¶
- ISize val
u8¶
Returns¶
- U8 val
u16¶
Returns¶
- U16 val
u32¶
Returns¶
- U32 val
u64¶
Returns¶
- U64 val
u128¶
Returns¶
- U128 val
ulong¶
Returns¶
- ULong val
usize¶
Returns¶
- USize val
f32¶
Returns¶
- F32 val
f64¶
Returns¶
- F64 val
i8_unsafe¶
Returns¶
- I8 val
i16_unsafe¶
Returns¶
- I16 val
i32_unsafe¶
Returns¶
- I32 val
i64_unsafe¶
Returns¶
- I64 val
i128_unsafe¶
Returns¶
- I128 val
ilong_unsafe¶
Returns¶
- ILong val
isize_unsafe¶
Returns¶
- ISize val
u8_unsafe¶
Returns¶
- U8 val
u16_unsafe¶
Returns¶
- U16 val
u32_unsafe¶
Returns¶
- U32 val
u64_unsafe¶
Returns¶
- U64 val
u128_unsafe¶
Returns¶
- U128 val
ulong_unsafe¶
Returns¶
- ULong val
usize_unsafe¶
Returns¶
- USize val
f32_unsafe¶
Returns¶
- F32 val
f64_unsafe¶
Returns¶
- F64 val
compare¶
Parameters¶
- that: box->A