package base

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Float.ClassSource

Excluding nan the floating-point "number line" looks like:

         t                Class.t    example
       ^ neg_infinity     Infinite   neg_infinity
       | neg normals      Normal     -3.14
       | neg subnormals   Subnormal  -.2. ** -1023.
       | (-/+) zero       Zero       0.
       | pos subnormals   Subnormal  2. ** -1023.
       | pos normals      Normal     3.14
       v infinity         Infinite   infinity
Sourcetype t =
  1. | Infinite
  2. | Nan
  3. | Normal
  4. | Subnormal
  5. | Zero
Sourceval compare : t -> t -> int
Sourceval all : t list
include Sexplib0.Sexpable.S with type t := t
Sourceval t_of_sexp : Sexplib0.Sexp.t -> t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval t_sexp_grammar : t Sexplib0.Sexp_grammar.t
include Stringable.S with type t := t
Sourceval of_string : string -> t
Sourceval to_string : t -> string
OCaml

Innovation. Community. Security.