package pp-binary-ints

  1. Overview
  2. Docs
Pretty Printing Binary Integers

Install

Dune Dependency

Authors

Maintainers

Sources

pp-binary-ints-1.0.0.tbz
sha256=4840fc294cf861bddecdbb3218f0ef26d37d2207d45a45d19d01f14e5528cd1b
sha512=123ec3a792e5148d324ac1406d62fcee798af8ec7a75d23986ac18018ea816d954a71e01d8edbb734fb9f5855686f63e22765da49c72802e67acb9749e6d6616

CHANGES.md.html

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[1.0.0] - 2022-01-12

Changed

  • Default flags have changed to padding with zeros, with separators and prefixes, and zero printing behaves just like non-zero printing. Since the primary purpose of this library is debugging, this should help.

  • *.{make_pp_int,make_to_string} no longer take an optional flags parameter, and instead takes optional boolean parameters zero_padding, left_padding, separators, prefix, suffix, zero_special.

  • Renamed *.{pp_binary_int} to *.{pp_int_with} for consistency.

Fixed

  • Padding with zeros no longer assumes prefixes are always 2 characters long.

[0.1.1] - 2021-12-31

Added

  • Support for int32, int64, and nativeint.

  • *.{make_pp_int,make_to_string} with optional arguments.

Fixed

  • Separators are now always respected, even when printing zero and zero_printing is set to OCaml. In Stdlib, padding with zeros means you pad with zeros without separators, but previously we thought this was only the case for printing zero. This has been fixed to always respect the separators flag.

[0.1.0] - 2021-12-29

Initial release.

OCaml

Innovation. Community. Security.