F32 [Src]

primitive val F32 is
  FloatingPoint[F32 val] val

Implements


Constructors

create [Src]

new val create(
  value: F32 val = seq)
: F32 val^

Parameters

  • value: F32 val = seq

Returns


pi [Src]

new val pi()
: F32 val^

Returns


e [Src]

new val e()
: F32 val^

Returns


from_bits [Src]

new val from_bits(
  i: U32 val)
: F32 val^

Parameters

Returns


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)
: F32 val^

Parameters

  • a: B

Returns


min_value [Src]

Minimum negative value representable.

new val min_value()
: F32 val^

Returns


max_value [Src]

Maximum positive value representable.

new val max_value()
: F32 val^

Returns


min_normalised [Src]

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

new val min_normalised()
: F32 val^

Returns


epsilon [Src]

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

new val epsilon()
: F32 val^

Returns


Public Functions

bits [Src]

fun box bits()
: U32 val

Returns


radix [Src]

Exponent radix.

fun tag radix()
: U8 val

Returns


precision2 [Src]

Mantissa precision in bits.

fun tag precision2()
: U8 val

Returns


precision10 [Src]

Mantissa precision in decimal digits.

fun tag precision10()
: U8 val

Returns


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


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


max_exp2 [Src]

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

fun tag max_exp2()
: I16 val

Returns


max_exp10 [Src]

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

fun tag max_exp10()
: I16 val

Returns


abs [Src]

fun box abs()
: F32 val

Returns


ceil [Src]

fun box ceil()
: F32 val

Returns


floor [Src]

fun box floor()
: F32 val

Returns


round [Src]

fun box round()
: F32 val

Returns


trunc [Src]

fun box trunc()
: F32 val

Returns


min [Src]

fun box min(
  y: F32 val)
: F32 val

Parameters

Returns


max [Src]

fun box max(
  y: F32 val)
: F32 val

Parameters

Returns


finite [Src]

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

fun box finite()
: Bool val

Returns


infinite [Src]

Check whether this number is +/-infinity

fun box infinite()
: Bool val

Returns


nan [Src]

Check whether this number is NaN.

fun box nan()
: Bool val

Returns


ldexp [Src]

fun box ldexp(
  x: F32 val,
  exponent: I32 val)
: F32 val

Parameters

  • x: F32 val
  • exponent: I32 val

Returns


frexp [Src]

fun box frexp()
: (F32 val , U32 val)

Returns


log [Src]

fun box log()
: F32 val

Returns


log2 [Src]

fun box log2()
: F32 val

Returns


log10 [Src]

fun box log10()
: F32 val

Returns


logb [Src]

fun box logb()
: F32 val

Returns


pow [Src]

fun box pow(
  y: F32 val)
: F32 val

Parameters

Returns


powi [Src]

fun box powi(
  y: I32 val)
: F32 val

Parameters

Returns


sqrt [Src]

fun box sqrt()
: F32 val

Returns


sqrt_unsafe [Src]

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

fun box sqrt_unsafe()
: F32 val

Returns


cbrt [Src]

fun box cbrt()
: F32 val

Returns


exp [Src]

fun box exp()
: F32 val

Returns


exp2 [Src]

fun box exp2()
: F32 val

Returns


cos [Src]

fun box cos()
: F32 val

Returns


sin [Src]

fun box sin()
: F32 val

Returns


tan [Src]

fun box tan()
: F32 val

Returns


cosh [Src]

fun box cosh()
: F32 val

Returns


sinh [Src]

fun box sinh()
: F32 val

Returns


tanh [Src]

fun box tanh()
: F32 val

Returns


acos [Src]

fun box acos()
: F32 val

Returns


asin [Src]

fun box asin()
: F32 val

Returns


atan [Src]

fun box atan()
: F32 val

Returns


atan2 [Src]

fun box atan2(
  y: F32 val)
: F32 val

Parameters

Returns


acosh [Src]

fun box acosh()
: F32 val

Returns


asinh [Src]

fun box asinh()
: F32 val

Returns


atanh [Src]

fun box atanh()
: F32 val

Returns


copysign [Src]

fun box copysign(
  sign: F32 val)
: F32 val

Parameters

  • sign: F32 val

Returns


hash [Src]

fun box hash()
: U64 val

Returns


i128 [Src]

fun box i128()
: I128 val

Returns


u128 [Src]

fun box u128()
: U128 val

Returns


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


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


add_unsafe [Src]

fun box add_unsafe(
  y: F32 val)
: F32 val

Parameters

Returns


sub_unsafe [Src]

fun box sub_unsafe(
  y: F32 val)
: F32 val

Parameters

Returns


mul_unsafe [Src]

fun box mul_unsafe(
  y: F32 val)
: F32 val

Parameters

Returns


div_unsafe [Src]

fun box div_unsafe(
  y: F32 val)
: F32 val

Parameters

Returns


divmod_unsafe [Src]

fun box divmod_unsafe(
  y: F32 val)
: (F32 val , F32 val)

Parameters

Returns


mod_unsafe [Src]

fun box mod_unsafe(
  y: F32 val)
: F32 val

Parameters

Returns


neg_unsafe [Src]

fun box neg_unsafe()
: F32 val

Returns


eq_unsafe [Src]

fun box eq_unsafe(
  y: F32 val)
: Bool val

Parameters

Returns


ne_unsafe [Src]

fun box ne_unsafe(
  y: F32 val)
: Bool val

Parameters

Returns


lt_unsafe [Src]

fun box lt_unsafe(
  y: F32 val)
: Bool val

Parameters

Returns


le_unsafe [Src]

fun box le_unsafe(
  y: F32 val)
: Bool val

Parameters

Returns


ge_unsafe [Src]

fun box ge_unsafe(
  y: F32 val)
: Bool val

Parameters

Returns


gt_unsafe [Src]

fun box gt_unsafe(
  y: F32 val)
: Bool val

Parameters

Returns


string [Src]

fun box string()
: String iso^

Returns


add [Src]

fun box add(
  y: F32 val)
: F32 val

Parameters

Returns


sub [Src]

fun box sub(
  y: F32 val)
: F32 val

Parameters

Returns


mul [Src]

fun box mul(
  y: F32 val)
: F32 val

Parameters

Returns


div [Src]

fun box div(
  y: F32 val)
: F32 val

Parameters

Returns


divmod [Src]

fun box divmod(
  y: F32 val)
: (F32 val , F32 val)

Parameters

Returns


mod [Src]

fun box mod(
  y: F32 val)
: F32 val

Parameters

Returns


neg [Src]

fun box neg()
: F32 val

Returns


eq [Src]

fun box eq(
  y: F32 val)
: Bool val

Parameters

Returns


ne [Src]

fun box ne(
  y: F32 val)
: Bool val

Parameters

Returns


lt [Src]

fun box lt(
  y: F32 val)
: Bool val

Parameters

Returns


le [Src]

fun box le(
  y: F32 val)
: Bool val

Parameters

Returns


ge [Src]

fun box ge(
  y: F32 val)
: Bool val

Parameters

Returns


gt [Src]

fun box gt(
  y: F32 val)
: Bool val

Parameters

Returns


i8 [Src]

fun box i8()
: I8 val

Returns


i16 [Src]

fun box i16()
: I16 val

Returns


i32 [Src]

fun box i32()
: I32 val

Returns


i64 [Src]

fun box i64()
: I64 val

Returns


ilong [Src]

fun box ilong()
: ILong val

Returns


isize [Src]

fun box isize()
: ISize val

Returns


u8 [Src]

fun box u8()
: U8 val

Returns


u16 [Src]

fun box u16()
: U16 val

Returns


u32 [Src]

fun box u32()
: U32 val

Returns


u64 [Src]

fun box u64()
: U64 val

Returns


ulong [Src]

fun box ulong()
: ULong val

Returns


usize [Src]

fun box usize()
: USize val

Returns


f32 [Src]

fun box f32()
: F32 val

Returns


f64 [Src]

fun box f64()
: F64 val

Returns


i8_unsafe [Src]

fun box i8_unsafe()
: I8 val

Returns


i16_unsafe [Src]

fun box i16_unsafe()
: I16 val

Returns


i32_unsafe [Src]

fun box i32_unsafe()
: I32 val

Returns


i64_unsafe [Src]

fun box i64_unsafe()
: I64 val

Returns


ilong_unsafe [Src]

fun box ilong_unsafe()
: ILong val

Returns


isize_unsafe [Src]

fun box isize_unsafe()
: ISize val

Returns


u8_unsafe [Src]

fun box u8_unsafe()
: U8 val

Returns


u16_unsafe [Src]

fun box u16_unsafe()
: U16 val

Returns


u32_unsafe [Src]

fun box u32_unsafe()
: U32 val

Returns


u64_unsafe [Src]

fun box u64_unsafe()
: U64 val

Returns


ulong_unsafe [Src]

fun box ulong_unsafe()
: ULong val

Returns


usize_unsafe [Src]

fun box usize_unsafe()
: USize val

Returns


f32_unsafe [Src]

fun box f32_unsafe()
: F32 val

Returns


f64_unsafe [Src]

fun box f64_unsafe()
: F64 val

Returns


compare

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

Parameters

  • that: F32 val

Returns