A Format.t
tells Percent.format
how to render a floating-point value as a string,
like a printf
conversion specification.
For example:
format (Format.exponent ~precision) = sprintf "%.e" precision
The _E
naming suffix in Format
values is mnenomic of a capital E
(rather than
e
) being used in floating-point exponent notation.
Here is the documentation of the floating-point conversion specifications from the OCaml manual:
include sig ... end
val sexp_of_t : t ‑> Base.Sexp.t