# F64¶

[Source]

``````primitive val F64 is
FloatingPoint[F64 val] val
``````

## Constructors¶

### create¶

[Source]

``````new val create(
value: F64 val = 0)
: F64 val^
``````

#### Parameters¶

• value: F64 val = 0

### pi¶

[Source]

``````new val pi()
: F64 val^
``````

### e¶

[Source]

``````new val e()
: F64 val^
``````

### from_bits¶

[Source]

``````new val from_bits(
i: U64 val)
: 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)]¶

[Source]

``````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^
``````

• a: B

### min_value¶

[Source]

Minimum negative value representable.

``````new val min_value()
: F64 val^
``````

### max_value¶

[Source]

Maximum positive value representable.

``````new val max_value()
: F64 val^
``````

### min_normalised¶

[Source]

Minimum positive value representable at full precision (ie a normalised number).

``````new val min_normalised()
: F64 val^
``````

### epsilon¶

[Source]

Minimum positive value such that (1 + epsilon) != 1.

``````new val epsilon()
: F64 val^
``````

## Public Functions¶

### bits¶

[Source]

``````fun box bits()
: U64 val
``````

#### Returns¶

[Source]

``````fun tag radix()
: U8 val
``````

### precision2¶

[Source]

Mantissa precision in bits.

``````fun tag precision2()
: U8 val
``````

### precision10¶

[Source]

Mantissa precision in decimal digits.

``````fun tag precision10()
: U8 val
``````

### min_exp2¶

[Source]

Minimum exponent value such that (2^exponent) - 1 is representable at full precision (ie a normalised number).

``````fun tag min_exp2()
: I16 val
``````

### min_exp10¶

[Source]

Minimum exponent value such that (10^exponent) - 1 is representable at full precision (ie a normalised number).

``````fun tag min_exp10()
: I16 val
``````

### max_exp2¶

[Source]

Maximum exponent value such that (2^exponent) - 1 is representable.

``````fun tag max_exp2()
: I16 val
``````

### max_exp10¶

[Source]

Maximum exponent value such that (10^exponent) - 1 is representable.

``````fun tag max_exp10()
: I16 val
``````

### abs¶

[Source]

``````fun box abs()
: F64 val
``````

### ceil¶

[Source]

``````fun box ceil()
: F64 val
``````

### floor¶

[Source]

``````fun box floor()
: F64 val
``````

### round¶

[Source]

``````fun box round()
: F64 val
``````

### trunc¶

[Source]

``````fun box trunc()
: F64 val
``````

### min¶

[Source]

``````fun box min(
y: F64 val)
: F64 val
``````

### max¶

[Source]

``````fun box max(
y: F64 val)
: F64 val
``````

### fld¶

[Source]

``````fun box fld(
y: F64 val)
: F64 val
``````

### fld_unsafe¶

[Source]

``````fun box fld_unsafe(
y: F64 val)
: F64 val
``````

### mod¶

[Source]

``````fun box mod(
y: F64 val)
: F64 val
``````

### mod_unsafe¶

[Source]

``````fun box mod_unsafe(
y: F64 val)
: F64 val
``````

### finite¶

[Source]

Check whether this number is finite, ie not +/-infinity and not NaN.

``````fun box finite()
: Bool val
``````

### infinite¶

[Source]

Check whether this number is +/-infinity

``````fun box infinite()
: Bool val
``````

### nan¶

[Source]

Check whether this number is NaN.

``````fun box nan()
: Bool val
``````

### ldexp¶

[Source]

``````fun box ldexp(
x: F64 val,
exponent: I32 val)
: F64 val
``````

#### Parameters¶

• x: F64 val
• exponent: I32 val

### frexp¶

[Source]

``````fun box frexp()
: (F64 val , U32 val)
``````

### log¶

[Source]

``````fun box log()
: F64 val
``````

### log2¶

[Source]

``````fun box log2()
: F64 val
``````

### log10¶

[Source]

``````fun box log10()
: F64 val
``````

### logb¶

[Source]

``````fun box logb()
: F64 val
``````

### pow¶

[Source]

``````fun box pow(
y: F64 val)
: F64 val
``````

### powi¶

[Source]

``````fun box powi(
y: I32 val)
: F64 val
``````

### sqrt¶

[Source]

``````fun box sqrt()
: F64 val
``````

### sqrt_unsafe¶

[Source]

Unsafe operation. If this is negative, the result is undefined.

``````fun box sqrt_unsafe()
: F64 val
``````

### cbrt¶

[Source]

``````fun box cbrt()
: F64 val
``````

### exp¶

[Source]

``````fun box exp()
: F64 val
``````

### exp2¶

[Source]

``````fun box exp2()
: F64 val
``````

### cos¶

[Source]

``````fun box cos()
: F64 val
``````

### sin¶

[Source]

``````fun box sin()
: F64 val
``````

### tan¶

[Source]

``````fun box tan()
: F64 val
``````

### cosh¶

[Source]

``````fun box cosh()
: F64 val
``````

### sinh¶

[Source]

``````fun box sinh()
: F64 val
``````

### tanh¶

[Source]

``````fun box tanh()
: F64 val
``````

### acos¶

[Source]

``````fun box acos()
: F64 val
``````

### asin¶

[Source]

``````fun box asin()
: F64 val
``````

### atan¶

[Source]

``````fun box atan()
: F64 val
``````

### atan2¶

[Source]

``````fun box atan2(
y: F64 val)
: F64 val
``````

### acosh¶

[Source]

``````fun box acosh()
: F64 val
``````

### asinh¶

[Source]

``````fun box asinh()
: F64 val
``````

### atanh¶

[Source]

``````fun box atanh()
: F64 val
``````

### copysign¶

[Source]

``````fun box copysign(
sign: F64 val)
: F64 val
``````

#### Parameters¶

• sign: F64 val

### hash¶

[Source]

``````fun box hash()
: USize val
``````

### hash64¶

[Source]

``````fun box hash64()
: U64 val
``````

### i128¶

[Source]

``````fun box i128()
: I128 val
``````

### u128¶

[Source]

``````fun box u128()
: U128 val
``````

### i128_unsafe¶

[Source]

Unsafe operation. If the value doesn't fit in the destination type, the result is undefined.

``````fun box i128_unsafe()
: I128 val
``````

### u128_unsafe¶

[Source]

Unsafe operation. If the value doesn't fit in the destination type, the result is undefined.

``````fun box u128_unsafe()
: U128 val
``````

#### Returns¶

[Source]

``````fun box add_unsafe(
y: F64 val)
: F64 val
``````

### sub_unsafe¶

[Source]

``````fun box sub_unsafe(
y: F64 val)
: F64 val
``````

### mul_unsafe¶

[Source]

``````fun box mul_unsafe(
y: F64 val)
: F64 val
``````

### div_unsafe¶

[Source]

``````fun box div_unsafe(
y: F64 val)
: F64 val
``````

### divrem_unsafe¶

[Source]

``````fun box divrem_unsafe(
y: F64 val)
: (F64 val , F64 val)
``````

### rem_unsafe¶

[Source]

``````fun box rem_unsafe(
y: F64 val)
: F64 val
``````

### neg_unsafe¶

[Source]

``````fun box neg_unsafe()
: F64 val
``````

### eq_unsafe¶

[Source]

``````fun box eq_unsafe(
y: F64 val)
: Bool val
``````

### ne_unsafe¶

[Source]

``````fun box ne_unsafe(
y: F64 val)
: Bool val
``````

### lt_unsafe¶

[Source]

``````fun box lt_unsafe(
y: F64 val)
: Bool val
``````

### le_unsafe¶

[Source]

``````fun box le_unsafe(
y: F64 val)
: Bool val
``````

### ge_unsafe¶

[Source]

``````fun box ge_unsafe(
y: F64 val)
: Bool val
``````

### gt_unsafe¶

[Source]

``````fun box gt_unsafe(
y: F64 val)
: Bool val
``````

### string¶

[Source]

``````fun box string()
: String iso^
``````

#### Returns¶

[Source]

``````fun box add(
y: F64 val)
: F64 val
``````

### sub¶

[Source]

``````fun box sub(
y: F64 val)
: F64 val
``````

### mul¶

[Source]

``````fun box mul(
y: F64 val)
: F64 val
``````

### div¶

[Source]

``````fun box div(
y: F64 val)
: F64 val
``````

### divrem¶

[Source]

``````fun box divrem(
y: F64 val)
: (F64 val , F64 val)
``````

### rem¶

[Source]

``````fun box rem(
y: F64 val)
: F64 val
``````

### neg¶

[Source]

``````fun box neg()
: F64 val
``````

### eq¶

[Source]

``````fun box eq(
y: F64 val)
: Bool val
``````

### ne¶

[Source]

``````fun box ne(
y: F64 val)
: Bool val
``````

### lt¶

[Source]

``````fun box lt(
y: F64 val)
: Bool val
``````

### le¶

[Source]

``````fun box le(
y: F64 val)
: Bool val
``````

### ge¶

[Source]

``````fun box ge(
y: F64 val)
: Bool val
``````

### gt¶

[Source]

``````fun box gt(
y: F64 val)
: Bool val
``````

### i8¶

[Source]

``````fun box i8()
: I8 val
``````

### i16¶

[Source]

``````fun box i16()
: I16 val
``````

### i32¶

[Source]

``````fun box i32()
: I32 val
``````

### i64¶

[Source]

``````fun box i64()
: I64 val
``````

### ilong¶

[Source]

``````fun box ilong()
: ILong val
``````

### isize¶

[Source]

``````fun box isize()
: ISize val
``````

### u8¶

[Source]

``````fun box u8()
: U8 val
``````

### u16¶

[Source]

``````fun box u16()
: U16 val
``````

### u32¶

[Source]

``````fun box u32()
: U32 val
``````

### u64¶

[Source]

``````fun box u64()
: U64 val
``````

### ulong¶

[Source]

``````fun box ulong()
: ULong val
``````

### usize¶

[Source]

``````fun box usize()
: USize val
``````

### f32¶

[Source]

``````fun box f32()
: F32 val
``````

### f64¶

[Source]

``````fun box f64()
: F64 val
``````

### i8_unsafe¶

[Source]

``````fun box i8_unsafe()
: I8 val
``````

### i16_unsafe¶

[Source]

``````fun box i16_unsafe()
: I16 val
``````

### i32_unsafe¶

[Source]

``````fun box i32_unsafe()
: I32 val
``````

### i64_unsafe¶

[Source]

``````fun box i64_unsafe()
: I64 val
``````

### ilong_unsafe¶

[Source]

``````fun box ilong_unsafe()
: ILong val
``````

### isize_unsafe¶

[Source]

``````fun box isize_unsafe()
: ISize val
``````

### u8_unsafe¶

[Source]

``````fun box u8_unsafe()
: U8 val
``````

### u16_unsafe¶

[Source]

``````fun box u16_unsafe()
: U16 val
``````

### u32_unsafe¶

[Source]

``````fun box u32_unsafe()
: U32 val
``````

### u64_unsafe¶

[Source]

``````fun box u64_unsafe()
: U64 val
``````

### ulong_unsafe¶

[Source]

``````fun box ulong_unsafe()
: ULong val
``````

### usize_unsafe¶

[Source]

``````fun box usize_unsafe()
: USize val
``````

### f32_unsafe¶

[Source]

``````fun box f32_unsafe()
: F32 val
``````

### f64_unsafe¶

[Source]

``````fun box f64_unsafe()
: F64 val
``````

### compare¶

``````fun box compare(
that: F64 val)
: (Less val | Equal val | Greater val)
``````

#### Parameters¶

• that: F64 val