package tezos-protocol-019-PtParisB

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

A value representing percentages, between 0% and 100%, inclusive. Precision of the representation is 0.01%

val of_ratio_bounded : Ratio_repr.t -> t

Rounds down to the nearest 0.01%

val of_q_bounded : round:[ `Down | `Up ] -> Tezos_protocol_environment_019_PtParisB.Q.t -> t
val neg : t -> t

neg p is 100% - p.

val add_bounded : t -> t -> t
val sub_bounded : t -> t -> t
val mul : round:[ `Down | `Up ] -> t -> t -> t
val mul_q_bounded : round:[ `Down | `Up ] -> t -> Tezos_protocol_environment_019_PtParisB.Q.t -> t

Constants

val p0 : t

0%

val p5 : t

5%

val p50 : t

50%

val p51 : t

51%

val p100 : t

100%

module Compare : sig ... end
val convert_from_o_to_p : t -> t
OCaml

Innovation. Community. Security.