FloatingPoint [Src] [A: FloatingPoint[A] val]
trait val FloatingPoint[A: FloatingPoint[A] val] is
Real[A] val
Implements
- Real[A] val
Constructors
min_normalised [Src]
new val min_normalised()
: FloatingPoint[A] val^
Returns
- FloatingPoint[A] val^
epsilon [Src]
new val epsilon()
: FloatingPoint[A] val^
Returns
- FloatingPoint[A] val^
create [Src]
new val create(
value: A)
: Real[A] val^
Parameters
- value: A
Returns
- Real[A] val^
from [Src] [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 [Src]
new val min_value()
: Real[A] val^
Returns
- Real[A] val^
max_value [Src]
new val max_value()
: Real[A] val^
Returns
- Real[A] val^
Public Functions
radix [Src]
fun tag radix()
: U8 val
Returns
- U8 val
precision2 [Src]
fun tag precision2()
: U8 val
Returns
- U8 val
precision10 [Src]
fun tag precision10()
: U8 val
Returns
- U8 val
min_exp2 [Src]
fun tag min_exp2()
: I16 val
Returns
- I16 val
min_exp10 [Src]
fun tag min_exp10()
: I16 val
Returns
- I16 val
max_exp2 [Src]
fun tag max_exp2()
: I16 val
Returns
- I16 val
max_exp10 [Src]
fun tag max_exp10()
: I16 val
Returns
- I16 val
add_unsafe [Src]
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.
fun box add_unsafe(
y: A)
: A
Parameters
- y: A
Returns
- A
sub_unsafe [Src]
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.
fun box sub_unsafe(
y: A)
: A
Parameters
- y: A
Returns
- A
mul_unsafe [Src]
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.
fun box mul_unsafe(
y: A)
: A
Parameters
- y: A
Returns
- A
div_unsafe [Src]
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.
fun box div_unsafe(
y: A)
: A
Parameters
- y: A
Returns
- A
divmod_unsafe [Src]
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.
fun box divmod_unsafe(
y: A)
: (A , A)
Parameters
- y: A
Returns
- (A , A)
mod_unsafe [Src]
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.
fun box mod_unsafe(
y: A)
: A
Parameters
- y: A
Returns
- A
neg_unsafe [Src]
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.
fun box neg_unsafe()
: A
Returns
- A
eq_unsafe [Src]
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.
fun box eq_unsafe(
y: A)
: Bool val
Parameters
- y: A
Returns
- Bool val
ne_unsafe [Src]
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.
fun box ne_unsafe(
y: A)
: Bool val
Parameters
- y: A
Returns
- Bool val
lt_unsafe [Src]
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.
fun box lt_unsafe(
y: A)
: Bool val
Parameters
- y: A
Returns
- Bool val
le_unsafe [Src]
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.
fun box le_unsafe(
y: A)
: Bool val
Parameters
- y: A
Returns
- Bool val
ge_unsafe [Src]
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.
fun box ge_unsafe(
y: A)
: Bool val
Parameters
- y: A
Returns
- Bool val
gt_unsafe [Src]
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.
fun box gt_unsafe(
y: A)
: Bool val
Parameters
- y: A
Returns
- Bool val
abs [Src]
fun box abs()
: A
Returns
- A
ceil [Src]
fun box ceil()
: A
Returns
- A
floor [Src]
fun box floor()
: A
Returns
- A
round [Src]
fun box round()
: A
Returns
- A
trunc [Src]
fun box trunc()
: A
Returns
- A
finite [Src]
fun box finite()
: Bool val
Returns
- Bool val
infinite [Src]
fun box infinite()
: Bool val
Returns
- Bool val
nan [Src]
fun box nan()
: Bool val
Returns
- Bool val
ldexp [Src]
fun box ldexp(
x: A,
exponent: I32 val)
: A
Parameters
- x: A
- exponent: I32 val
Returns
- A
frexp [Src]
fun box frexp()
: (A , U32 val)
Returns
- (A , U32 val)
log [Src]
fun box log()
: A
Returns
- A
log2 [Src]
fun box log2()
: A
Returns
- A
log10 [Src]
fun box log10()
: A
Returns
- A
logb [Src]
fun box logb()
: A
Returns
- A
pow [Src]
fun box pow(
y: A)
: A
Parameters
- y: A
Returns
- A
powi [Src]
fun box powi(
y: I32 val)
: A
Parameters
- y: I32 val
Returns
- A
sqrt [Src]
fun box sqrt()
: A
Returns
- A
sqrt_unsafe [Src]
Unsafe operation. If this is negative, the result is undefined.
fun box sqrt_unsafe()
: A
Returns
- A
cbrt [Src]
fun box cbrt()
: A
Returns
- A
exp [Src]
fun box exp()
: A
Returns
- A
exp2 [Src]
fun box exp2()
: A
Returns
- A
cos [Src]
fun box cos()
: A
Returns
- A
sin [Src]
fun box sin()
: A
Returns
- A
tan [Src]
fun box tan()
: A
Returns
- A
cosh [Src]
fun box cosh()
: A
Returns
- A
sinh [Src]
fun box sinh()
: A
Returns
- A
tanh [Src]
fun box tanh()
: A
Returns
- A
acos [Src]
fun box acos()
: A
Returns
- A
asin [Src]
fun box asin()
: A
Returns
- A
atan [Src]
fun box atan()
: A
Returns
- A
atan2 [Src]
fun box atan2(
y: A)
: A
Parameters
- y: A
Returns
- A
acosh [Src]
fun box acosh()
: A
Returns
- A
asinh [Src]
fun box asinh()
: A
Returns
- A
atanh [Src]
fun box atanh()
: A
Returns
- A
copysign [Src]
fun box copysign(
sign: A)
: A
Parameters
- sign: A
Returns
- A
string [Src]
fun box string()
: String iso^
Returns
- String iso^
add [Src]
fun box add(
y: A)
: A
Parameters
- y: A
Returns
- A
sub [Src]
fun box sub(
y: A)
: A
Parameters
- y: A
Returns
- A
mul [Src]
fun box mul(
y: A)
: A
Parameters
- y: A
Returns
- A
div [Src]
fun box div(
y: A)
: A
Parameters
- y: A
Returns
- A
divmod [Src]
fun box divmod(
y: A)
: (A , A)
Parameters
- y: A
Returns
- (A , A)
mod [Src]
fun box mod(
y: A)
: A
Parameters
- y: A
Returns
- A
neg [Src]
fun box neg()
: A
Returns
- A
eq [Src]
fun box eq(
y: A)
: Bool val
Parameters
- y: A
Returns
- Bool val
ne [Src]
fun box ne(
y: A)
: Bool val
Parameters
- y: A
Returns
- Bool val
lt [Src]
fun box lt(
y: A)
: Bool val
Parameters
- y: A
Returns
- Bool val
le [Src]
fun box le(
y: A)
: Bool val
Parameters
- y: A
Returns
- Bool val
ge [Src]
fun box ge(
y: A)
: Bool val
Parameters
- y: A
Returns
- Bool val
gt [Src]
fun box gt(
y: A)
: Bool val
Parameters
- y: A
Returns
- Bool val
min [Src]
fun box min(
y: A)
: A
Parameters
- y: A
Returns
- A
max [Src]
fun box max(
y: A)
: A
Parameters
- y: A
Returns
- A
hash [Src]
fun box hash()
: U64 val
Returns
- U64 val
i8 [Src]
fun box i8()
: I8 val
Returns
- I8 val
i16 [Src]
fun box i16()
: I16 val
Returns
- I16 val
i32 [Src]
fun box i32()
: I32 val
Returns
- I32 val
i64 [Src]
fun box i64()
: I64 val
Returns
- I64 val
i128 [Src]
fun box i128()
: I128 val
Returns
- I128 val
ilong [Src]
fun box ilong()
: ILong val
Returns
- ILong val
isize [Src]
fun box isize()
: ISize val
Returns
- ISize val
u8 [Src]
fun box u8()
: U8 val
Returns
- U8 val
u16 [Src]
fun box u16()
: U16 val
Returns
- U16 val
u32 [Src]
fun box u32()
: U32 val
Returns
- U32 val
u64 [Src]
fun box u64()
: U64 val
Returns
- U64 val
u128 [Src]
fun box u128()
: U128 val
Returns
- U128 val
ulong [Src]
fun box ulong()
: ULong val
Returns
- ULong val
usize [Src]
fun box usize()
: USize val
Returns
- USize val
f32 [Src]
fun box f32()
: F32 val
Returns
- F32 val
f64 [Src]
fun box f64()
: F64 val
Returns
- F64 val
i8_unsafe [Src]
fun box i8_unsafe()
: I8 val
Returns
- I8 val
i16_unsafe [Src]
fun box i16_unsafe()
: I16 val
Returns
- I16 val
i32_unsafe [Src]
fun box i32_unsafe()
: I32 val
Returns
- I32 val
i64_unsafe [Src]
fun box i64_unsafe()
: I64 val
Returns
- I64 val
i128_unsafe [Src]
fun box i128_unsafe()
: I128 val
Returns
- I128 val
ilong_unsafe [Src]
fun box ilong_unsafe()
: ILong val
Returns
- ILong val
isize_unsafe [Src]
fun box isize_unsafe()
: ISize val
Returns
- ISize val
u8_unsafe [Src]
fun box u8_unsafe()
: U8 val
Returns
- U8 val
u16_unsafe [Src]
fun box u16_unsafe()
: U16 val
Returns
- U16 val
u32_unsafe [Src]
fun box u32_unsafe()
: U32 val
Returns
- U32 val
u64_unsafe [Src]
fun box u64_unsafe()
: U64 val
Returns
- U64 val
u128_unsafe [Src]
fun box u128_unsafe()
: U128 val
Returns
- U128 val
ulong_unsafe [Src]
fun box ulong_unsafe()
: ULong val
Returns
- ULong val
usize_unsafe [Src]
fun box usize_unsafe()
: USize val
Returns
- USize val
f32_unsafe [Src]
fun box f32_unsafe()
: F32 val
Returns
- F32 val
f64_unsafe [Src]
fun box f64_unsafe()
: F64 val
Returns
- F64 val
compare
fun box compare(
that: A)
: (Less val | Equal val | Greater val)
Parameters
- that: A