package batteries

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

Install

Dune Dependency

Authors

Maintainers

Sources

v3.7.2.tar.gz
md5=1fd7bddce07cf5d244fc9427f7b5e4d4
sha512=c0f2a0fdc8253e0ea999d8d4c58bfbf32b18d251a2e1d9656bf279de5f01a33e9aabac3af4d95f465f8b671e7711ebd37218043face233340a0c11b08fa62f78

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.