package farith

  1. Overview
  2. Docs

Module Farith.FSource

Sourcetype t
Sourceval compare : t -> t -> Ppx_deriving_runtime.int
include Ppx_hash_lib.Hashable.S with type t := t
Sourceval hash_fold_t : Base.Hash.state -> t -> Base.Hash.state
Sourceval ew : t -> int
Sourceval mw : t -> int
Sourceval pp : Format.formatter -> t -> unit
Sourceval of_q : mw:int -> ew:int -> Mode.t -> Q.t -> t
Sourceval to_q : t -> Q.t
Sourceval add : Mode.t -> t -> t -> t
Sourceval sub : Mode.t -> t -> t -> t
Sourceval mul : Mode.t -> t -> t -> t
Sourceval div : Mode.t -> t -> t -> t
Sourceval fma : Mode.t -> t -> t -> t -> t
Sourceval sqrt : Mode.t -> t -> t
Sourceval abs : t -> t
Sourceval neg : t -> t
Sourceval pred : t -> t
Sourceval succ : t -> t
Sourceval of_bits : mw:int -> ew:int -> Z.t -> t
Sourceval to_bits : t -> Z.t
Sourceval of_float : float -> t
Sourceval to_float : Mode.t -> t -> float
Sourceval round : mw:int -> ew:int -> Mode.t -> t -> t
Sourceval ge : t -> t -> bool
Sourceval gt : t -> t -> bool
Sourceval le : t -> t -> bool
Sourceval lt : t -> t -> bool
Sourceval eq : t -> t -> bool
Sourceval nan : mw:int -> ew:int -> t
Sourceval zero : mw:int -> ew:int -> bool -> t

zero false is positive zero and zero true is negative zero

Sourceval inf : mw:int -> ew:int -> bool -> t
Sourceval is_zero : t -> bool
Sourceval is_infinite : t -> bool
Sourceval is_nan : t -> bool
Sourceval is_negative : t -> bool
Sourceval is_positive : t -> bool
Sourceval is_normal : t -> bool
Sourceval is_subnormal : t -> bool
Sourceval classify : t -> Classify.t