Up

module Percent

: sig

An abstract type of scale factors

#
type t
include Std_internal.Stringable with type t := t
include Std_internal.Sexpable with type t := t
include Std_internal.Binable with type t := t
include Std_internal.Comparable with type t := t
include Comparable.With_zero with type t := t
include Commutative_group.S with type t := t
#
val (*) : t -> t -> t
#
val neg : t -> t
#
val abs : t -> t
#
val is_zero : t -> bool
#
val is_nan : t -> bool
#
val is_inf : t -> bool
#
val apply : t -> float -> float
#
val scale : t -> float -> t
#
val of_mult : float -> t
#
val to_mult : t -> float
#
val of_percentage : float -> t
#
val to_percentage : t -> float
#
val of_bp : float -> t
#
val to_bp : t -> float
#
val of_bp_int : int -> t
#
val to_bp_int : t -> int
#
val t_of_sexp_allow_nan_and_inf : Std_internal.Sexp.t -> t
#
val of_string_allow_nan_and_inf : string -> t
#
val validate : t -> Validate.t
#
module Stable : sig
#
module V1 : sig
include sig
#
type __pa_nonrec_0 = t
#
type t = __pa_nonrec_0
end
with type __pa_nonrec_0 := t
#
val compare : t -> t -> int
#
val bin_t : t Bin_prot.Type_class.t
#
val bin_read_t : t Bin_prot.Read.reader
#
val __bin_read_t__ : (int -> t) Bin_prot.Read.reader
#
val bin_reader_t : t Bin_prot.Type_class.reader
#
val bin_size_t : t Bin_prot.Size.sizer
#
val bin_write_t : t Bin_prot.Write.writer
#
val bin_writer_t : t Bin_prot.Type_class.writer
#
val t_of_sexp : Sexplib.Sexp.t -> t
#
val sexp_of_t : t -> Sexplib.Sexp.t
end
end
end