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