F32¶
Implements¶
- FloatingPoint[F32 val] val
Constructors¶
create¶
Parameters¶
- value: F32 val = 0
Returns¶
- F32 val^
pi¶
Returns¶
- F32 val^
e¶
Returns¶
- F32 val^
from_bits¶
Parameters¶
- i: U32 val
Returns¶
- F32 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)
: F32 val^
Parameters¶
- a: B
Returns¶
- F32 val^
min_value¶
Minimum negative value representable.
Returns¶
- F32 val^
max_value¶
Maximum positive value representable.
Returns¶
- F32 val^
min_normalised¶
Minimum positive value representable at full precision (ie a normalised number).
Returns¶
- F32 val^
epsilon¶
Minimum positive value such that (1 + epsilon) != 1.
Returns¶
- F32 val^
Public Functions¶
bits¶
Returns¶
- U32 val
radix¶
Exponent radix.
Returns¶
- U8 val
precision2¶
Mantissa precision in bits.
Returns¶
- U8 val
precision10¶
Mantissa precision in decimal digits.
Returns¶
- U8 val
min_exp2¶
Minimum exponent value such that (2^exponent) - 1 is representable at full precision (ie a normalised number).
Returns¶
- I16 val
min_exp10¶
Minimum exponent value such that (10^exponent) - 1 is representable at full precision (ie a normalised number).
Returns¶
- I16 val
max_exp2¶
Maximum exponent value such that (2^exponent) - 1 is representable.
Returns¶
- I16 val
max_exp10¶
Maximum exponent value such that (10^exponent) - 1 is representable.
Returns¶
- I16 val
abs¶
Returns¶
- F32 val
ceil¶
Returns¶
- F32 val
floor¶
Returns¶
- F32 val
round¶
Returns¶
- F32 val
trunc¶
Returns¶
- F32 val
min¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
max¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
fld¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
fld_unsafe¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
mod¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
mod_unsafe¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
finite¶
Check whether this number is finite, ie not +/-infinity and not NaN.
Returns¶
- Bool val
infinite¶
Check whether this number is +/-infinity
Returns¶
- Bool val
nan¶
Check whether this number is NaN.
Returns¶
- Bool val
ldexp¶
Parameters¶
Returns¶
- F32 val
frexp¶
Returns¶
log¶
Returns¶
- F32 val
log2¶
Returns¶
- F32 val
log10¶
Returns¶
- F32 val
logb¶
Returns¶
- F32 val
pow¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
powi¶
Parameters¶
- y: I32 val
Returns¶
- F32 val
sqrt¶
Returns¶
- F32 val
sqrt_unsafe¶
Unsafe operation. If this is negative, the result is undefined.
Returns¶
- F32 val
cbrt¶
Returns¶
- F32 val
exp¶
Returns¶
- F32 val
exp2¶
Returns¶
- F32 val
cos¶
Returns¶
- F32 val
sin¶
Returns¶
- F32 val
tan¶
Returns¶
- F32 val
cosh¶
Returns¶
- F32 val
sinh¶
Returns¶
- F32 val
tanh¶
Returns¶
- F32 val
acos¶
Returns¶
- F32 val
asin¶
Returns¶
- F32 val
atan¶
Returns¶
- F32 val
atan2¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
acosh¶
Returns¶
- F32 val
asinh¶
Returns¶
- F32 val
atanh¶
Returns¶
- F32 val
copysign¶
Parameters¶
- sign: F32 val
Returns¶
- F32 val
hash¶
Returns¶
- USize val
hash64¶
Returns¶
- U64 val
i128¶
Returns¶
- I128 val
u128¶
Returns¶
- U128 val
i128_unsafe¶
Unsafe operation. If the value doesn't fit in the destination type, the result is undefined.
Returns¶
- I128 val
u128_unsafe¶
Unsafe operation. If the value doesn't fit in the destination type, the result is undefined.
Returns¶
- U128 val
add_unsafe¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
sub_unsafe¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
mul_unsafe¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
div_unsafe¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
divrem_unsafe¶
Parameters¶
- y: F32 val
Returns¶
rem_unsafe¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
neg_unsafe¶
Returns¶
- F32 val
eq_unsafe¶
Parameters¶
- y: F32 val
Returns¶
- Bool val
ne_unsafe¶
Parameters¶
- y: F32 val
Returns¶
- Bool val
lt_unsafe¶
Parameters¶
- y: F32 val
Returns¶
- Bool val
le_unsafe¶
Parameters¶
- y: F32 val
Returns¶
- Bool val
ge_unsafe¶
Parameters¶
- y: F32 val
Returns¶
- Bool val
gt_unsafe¶
Parameters¶
- y: F32 val
Returns¶
- Bool val
string¶
Returns¶
- String iso^
add¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
sub¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
mul¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
div¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
divrem¶
Parameters¶
- y: F32 val
Returns¶
rem¶
Parameters¶
- y: F32 val
Returns¶
- F32 val
neg¶
Returns¶
- F32 val
eq¶
Parameters¶
- y: F32 val
Returns¶
- Bool val
ne¶
Parameters¶
- y: F32 val
Returns¶
- Bool val
lt¶
Parameters¶
- y: F32 val
Returns¶
- Bool val
le¶
Parameters¶
- y: F32 val
Returns¶
- Bool val
ge¶
Parameters¶
- y: F32 val
Returns¶
- Bool val
gt¶
Parameters¶
- y: F32 val
Returns¶
- Bool val
i8¶
Returns¶
- I8 val
i16¶
Returns¶
- I16 val
i32¶
Returns¶
- I32 val
i64¶
Returns¶
- I64 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
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
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
ulong_unsafe¶
Returns¶
- ULong val
usize_unsafe¶
Returns¶
- USize val
f32_unsafe¶
Returns¶
- F32 val
f64_unsafe¶
Returns¶
- F64 val
compare¶
Parameters¶
- that: F32 val