package core

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Percent.Always_percentageSource

Does not format small values as "3bp" or large ones as "2x"; always uses percentages ("0.0003%" or "200%"). The standard of_sexp can read these just fine.

Note: rounds to 6 significant digits only (as opposed to Percent.Stable.V3.Always_percentage, which is accurate, or Percent.Almost_round_trippable.Always_percentage, which rounds to 14 significant digits).

Sourcetype nonrec t = t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval to_string : t -> Base.String.t
Sourceval format : t -> Format.t -> Base.String.t