package pp-binary-ints

  1. Overview
  2. Docs
Pretty Printing Binary Integers

Install

Dune Dependency

Authors

Maintainers

Sources

pp-binary-ints-0.1.0.tbz
sha256=5ee9f0f118588fb5713ed5e951f1592885966c5dfe5a94a328afd17e9ec9ed93
sha512=569a2f8bee26405d18f294de6fcfd81a8464166e85d800a87394f8ed043aee3649f1e1344096c27c00c1bd0dcb0033101eeb1c6dabe4ce927657d412cf4691a6

doc/pp-binary-ints/Pp_binary_ints/Int/index.html

Module Pp_binary_ints.IntSource

Sourcemodule Flags : sig ... end

The Flags module contains types to modify how binary integers are printed.

Sourceval pp_binary_int : flags:Flags.flags -> min_width:int -> Format.formatter -> int -> unit

pp_binary_int ~flags ~min_width fmt n prints the integer n on the formatter fmt, customizing the output with ~flags. ~min_width pads the output with enough spaces or zeros so that the output is at least ~min_width characters, depends on flags.padding.

Sourceval pp_int : Format.formatter -> int -> unit

pp_binary_int ~flags ~min_width fmt n prints the integer n on the formatter fmt.

Sourceval to_string_with : flags:Flags.flags -> min_width:int -> int -> string

to_string_width ~flags ~min_width n converts the integer n to a binary integer n. customizing the output with ~flags. ~min_width pads the output with enough spaces or zeros so that the output is at least ~min_width characters, depends on flags.padding.

Sourceval to_string : int -> string

to_string n converts the integer n to a binary integer n.

OCaml

Innovation. Community. Security.