package batteries

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

Install

Dune Dependency

Authors

Maintainers

Sources

v3.7.1.tar.gz
md5=d02c4f044e53edca010de46f9139ce00
sha512=99a5afa3604c4cf0c849c670111d617f7f255acb0da043b73ddffdf0e299948bce52516ee31921f269de6088156c4e0a187e0b931543c6819c6b25966b303281

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.