package checked_oint
An OCaml library for checked integer arithmetic
Install
Dune Dependency
Authors
Maintainers
Sources
checked_oint-0.1.1.tar.gz
md5=8c5bd9e10faffd495037c4ecd0f8e6ea
sha512=e0179cbb8ea6d3f1a5ed87e190c88cd5a95a5cca817ef786b945e0fd8ffaaea46d34b64ea673b6c184fae27860f9a44ad0b66dc974fbfc9558de9025eb84d6f2
README.md.html
checked_oint
checked_oint
is an OCaml library for checked integer arithmetic. We support the full set of signed and unsigned integers of bitnesses 8, 16, 32, 64, and 128.
Installation
$ opam install checked_oint
Usage
open Checked_oint
let () =
let x = U8.of_int_exn 50 in
let y = U8.of_int_exn 70 in
assert (U8.equal (U8.add_exn x y) (U8.of_int_exn 120));
assert (Option.is_none (U8.mul x y))
You can find the API documentation here.
Release procedure
Update the
version
field indune-project
.Type
dune build
to generatechecked_oint.opam
.Update
CHANGELOG.md
.Release the project in GitHub Releases.
Type
git pull && opam publish
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>