F64
primitive val F64 is FloatingPoint[F64 val] val
Implements
- FloatingPoint[F64 val] val
Constructors
create
new val create( value: F64 val = 0) : F64 val^
Parameters
- value: F64 val = 0
Returns
- F64 val^
pi
new val pi() : F64 val^
Returns
- F64 val^
e
new val e() : F64 val^
Returns
- F64 val^
from_bits
new val from_bits( i: U64 val) : F64 val^
Parameters
- i: U64 val
Returns
- F64 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) : F64 val^
Parameters
- a: B
Returns
- F64 val^
min_value
Minimum negative value representable.
new val min_value() : F64 val^
Returns
- F64 val^
max_value
Maximum positive value representable.
new val max_value() : F64 val^
Returns
- F64 val^
min_normalised
Minimum positive value representable at full precision (ie a normalised number).
new val min_normalised() : F64 val^
Returns
- F64 val^
epsilon
Minimum positive value such that (1 + epsilon) != 1.
new val epsilon() : F64 val^
Returns
- F64 val^
Public Functions
bits
fun box bits() : U64 val
Returns
- U64 val
radix
Exponent radix.
fun tag radix() : U8 val
Returns
- U8 val
precision2
Mantissa precision in bits.
fun tag precision2() : U8 val
Returns
- U8 val
precision10
Mantissa precision in decimal digits.
fun tag precision10() : U8 val
Returns
- U8 val
min_exp2
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
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
Maximum exponent value such that (2^exponent) - 1 is representable.
fun tag max_exp2() : I16 val
Returns
- I16 val
max_exp10
Maximum exponent value such that (10^exponent) - 1 is representable.
fun tag max_exp10() : I16 val
Returns
- I16 val
abs
fun box abs() : F64 val
Returns
- F64 val
ceil
fun box ceil() : F64 val
Returns
- F64 val
floor
fun box floor() : F64 val
Returns
- F64 val
round
fun box round() : F64 val
Returns
- F64 val
trunc
fun box trunc() : F64 val
Returns
- F64 val
min
fun box min( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
max
fun box max( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
fld
fun box fld( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
fld_unsafe
fun box fld_unsafe( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
mod
fun box mod( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
mod_unsafe
fun box mod_unsafe( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
finite
Check whether this number is finite, ie not +/-infinity and not NaN.
fun box finite() : Bool val
Returns
- Bool val
infinite
Check whether this number is +/-infinity
fun box infinite() : Bool val
Returns
- Bool val
nan
Check whether this number is NaN.
fun box nan() : Bool val
Returns
- Bool val
ldexp
fun box ldexp( x: F64 val, exponent: I32 val) : F64 val
Parameters
Returns
- F64 val
frexp
fun box frexp() : (F64 val , U32 val)
Returns
log
fun box log() : F64 val
Returns
- F64 val
log2
fun box log2() : F64 val
Returns
- F64 val
log10
fun box log10() : F64 val
Returns
- F64 val
logb
fun box logb() : F64 val
Returns
- F64 val
pow
fun box pow( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
powi
fun box powi( y: I32 val) : F64 val
Parameters
- y: I32 val
Returns
- F64 val
sqrt
fun box sqrt() : F64 val
Returns
- F64 val
sqrt_unsafe
Unsafe operation. If this is negative, the result is undefined.
fun box sqrt_unsafe() : F64 val
Returns
- F64 val
cbrt
fun box cbrt() : F64 val
Returns
- F64 val
exp
fun box exp() : F64 val
Returns
- F64 val
exp2
fun box exp2() : F64 val
Returns
- F64 val
cos
fun box cos() : F64 val
Returns
- F64 val
sin
fun box sin() : F64 val
Returns
- F64 val
tan
fun box tan() : F64 val
Returns
- F64 val
cosh
fun box cosh() : F64 val
Returns
- F64 val
sinh
fun box sinh() : F64 val
Returns
- F64 val
tanh
fun box tanh() : F64 val
Returns
- F64 val
acos
fun box acos() : F64 val
Returns
- F64 val
asin
fun box asin() : F64 val
Returns
- F64 val
atan
fun box atan() : F64 val
Returns
- F64 val
atan2
fun box atan2( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
acosh
fun box acosh() : F64 val
Returns
- F64 val
asinh
fun box asinh() : F64 val
Returns
- F64 val
atanh
fun box atanh() : F64 val
Returns
- F64 val
copysign
fun box copysign( sign: F64 val) : F64 val
Parameters
- sign: F64 val
Returns
- F64 val
hash
fun box hash() : USize val
Returns
- USize val
hash64
fun box hash64() : U64 val
Returns
- U64 val
i128
fun box i128() : I128 val
Returns
- I128 val
u128
fun box u128() : U128 val
Returns
- U128 val
i128_unsafe
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
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
fun box add_unsafe( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
sub_unsafe
fun box sub_unsafe( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
mul_unsafe
fun box mul_unsafe( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
div_unsafe
fun box div_unsafe( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
divrem_unsafe
fun box divrem_unsafe( y: F64 val) : (F64 val , F64 val)
Parameters
- y: F64 val
Returns
rem_unsafe
fun box rem_unsafe( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
neg_unsafe
fun box neg_unsafe() : F64 val
Returns
- F64 val
eq_unsafe
fun box eq_unsafe( y: F64 val) : Bool val
Parameters
- y: F64 val
Returns
- Bool val
ne_unsafe
fun box ne_unsafe( y: F64 val) : Bool val
Parameters
- y: F64 val
Returns
- Bool val
lt_unsafe
fun box lt_unsafe( y: F64 val) : Bool val
Parameters
- y: F64 val
Returns
- Bool val
le_unsafe
fun box le_unsafe( y: F64 val) : Bool val
Parameters
- y: F64 val
Returns
- Bool val
ge_unsafe
fun box ge_unsafe( y: F64 val) : Bool val
Parameters
- y: F64 val
Returns
- Bool val
gt_unsafe
fun box gt_unsafe( y: F64 val) : Bool val
Parameters
- y: F64 val
Returns
- Bool val
string
fun box string() : String iso^
Returns
- String iso^
add
fun box add( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
sub
fun box sub( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
mul
fun box mul( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
div
fun box div( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
divrem
fun box divrem( y: F64 val) : (F64 val , F64 val)
Parameters
- y: F64 val
Returns
rem
fun box rem( y: F64 val) : F64 val
Parameters
- y: F64 val
Returns
- F64 val
neg
fun box neg() : F64 val
Returns
- F64 val
eq
fun box eq( y: F64 val) : Bool val
Parameters
- y: F64 val
Returns
- Bool val
ne
fun box ne( y: F64 val) : Bool val
Parameters
- y: F64 val
Returns
- Bool val
lt
fun box lt( y: F64 val) : Bool val
Parameters
- y: F64 val
Returns
- Bool val
le
fun box le( y: F64 val) : Bool val
Parameters
- y: F64 val
Returns
- Bool val
ge
fun box ge( y: F64 val) : Bool val
Parameters
- y: F64 val
Returns
- Bool val
gt
fun box gt( y: F64 val) : Bool val
Parameters
- y: F64 val
Returns
- Bool val
i8
fun box i8() : I8 val
Returns
- I8 val
i16
fun box i16() : I16 val
Returns
- I16 val
i32
fun box i32() : I32 val
Returns
- I32 val
i64
fun box i64() : I64 val
Returns
- I64 val
ilong
fun box ilong() : ILong val
Returns
- ILong val
isize
fun box isize() : ISize val
Returns
- ISize val
u8
fun box u8() : U8 val
Returns
- U8 val
u16
fun box u16() : U16 val
Returns
- U16 val
u32
fun box u32() : U32 val
Returns
- U32 val
u64
fun box u64() : U64 val
Returns
- U64 val
ulong
fun box ulong() : ULong val
Returns
- ULong val
usize
fun box usize() : USize val
Returns
- USize val
f32
fun box f32() : F32 val
Returns
- F32 val
f64
fun box f64() : F64 val
Returns
- F64 val
i8_unsafe
fun box i8_unsafe() : I8 val
Returns
- I8 val
i16_unsafe
fun box i16_unsafe() : I16 val
Returns
- I16 val
i32_unsafe
fun box i32_unsafe() : I32 val
Returns
- I32 val
i64_unsafe
fun box i64_unsafe() : I64 val
Returns
- I64 val
ilong_unsafe
fun box ilong_unsafe() : ILong val
Returns
- ILong val
isize_unsafe
fun box isize_unsafe() : ISize val
Returns
- ISize val
u8_unsafe
fun box u8_unsafe() : U8 val
Returns
- U8 val
u16_unsafe
fun box u16_unsafe() : U16 val
Returns
- U16 val
u32_unsafe
fun box u32_unsafe() : U32 val
Returns
- U32 val
u64_unsafe
fun box u64_unsafe() : U64 val
Returns
- U64 val
ulong_unsafe
fun box ulong_unsafe() : ULong val
Returns
- ULong val
usize_unsafe
fun box usize_unsafe() : USize val
Returns
- USize val
f32_unsafe
fun box f32_unsafe() : F32 val
Returns
- F32 val
f64_unsafe
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
Returns
© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/builtin-F64