package batteries

  1. Overview
  2. Docs
A community-maintained standard library extension

Install

Dune Dependency

Authors

Maintainers

Sources

v3.9.0.tar.gz
md5=ea26b5c72e6731e59d856626049cca4d
sha512=55975b62c26f6db77433a3ac31f97af609fc6789bb62ac38b267249c78fd44ff37fe81901f1cf560857b9493a6046dd37b0d1c0234c66bd59e52843aac3ce6cb

doc/batteries.unthreaded/BatNumber/module-type-Numeric/index.html

Module type BatNumber.NumericSource

The full set of operations of a type of numbers

Sourcetype t
Sourceval zero : t
Sourceval one : t
Sourceval neg : t -> t
Sourceval abs : t -> t
Sourceval add : t -> t -> t
Sourceval sub : t -> t -> t
Sourceval mul : t -> t -> t
Sourceval div : t -> t -> t
Sourceval modulo : t -> t -> t
Sourceval pow : t -> t -> t
Sourceval compare : t -> t -> int
Sourceval equal : t -> t -> bool
Sourceval of_int : int -> t
Sourceval to_int : t -> int
Sourceval of_float : float -> t
Sourceval to_float : t -> float
Sourceval of_string : string -> t
Sourceval to_string : t -> string
Sourceval operations : t numeric
Sourcetype discrete = t
Sourceval succ : t -> t
Sourceval pred : t -> t
Sourcemodule Infix : Infix with type bat__infix_t = t
Sourcemodule Compare : Compare with type bat__compare_t = t
include RefOps with type bat__refops_t = t
Sourcetype bat__refops_t = t
Sourceval (+=) : bat__refops_t ref -> bat__refops_t -> unit
Sourceval (-=) : bat__refops_t ref -> bat__refops_t -> unit
Sourceval (*=) : bat__refops_t ref -> bat__refops_t -> unit
Sourceval (/=) : bat__refops_t ref -> bat__refops_t -> unit
OCaml

Innovation. Community. Security.