Skip to content

ErlangFloat

[Source]

A floating point number.

Floats compare bit for bit, as Erlang's =:= does: 0.0 and -0.0 are different values, and a NaN equals itself. Comparing the bits is also what keeps == and hash() in agreement, which a Map or Set key needs.

class val ErlangFloat is
  Equatable[ErlangFloat val] ref,
  Hashable ref

Implements


Constructors

create

[Source]

new val create(
  value': F64 val)
: ErlangFloat val^

Parameters

  • value': F64 val

Returns


Public fields

let value: F64 val

[Source]


Public Functions

eq

[Source]

fun box eq(
  that: ErlangFloat val)
: Bool val

Parameters

Returns


hash

[Source]

fun box hash()
: USize val

Returns


ne

[Source]

fun box ne(
  that: ErlangFloat val)
: Bool val

Parameters

Returns