package pp-binary-ints

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Flags : sig ... end

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

val pp_binary_int : flags:Flags.flags -> min_width:int -> Stdlib.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.

val pp_int : Stdlib.Format.formatter -> int -> unit

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

val 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.

val to_string : int -> string

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

OCaml

Innovation. Community. Security.