Module Int_math.Make
Derived operations common to various integer modules.
See Int.S_common
for a description of the operations derived by this module.
Parameters
Signature
val (%) : X.t -> X.t -> X.t
val (/%) : X.t -> X.t -> X.t
val (//) : X.t -> X.t -> float
include Base__.Int_intf.Round with type t := X.t
val round_nearest : X.t -> to_multiple_of:X.t -> X.t
val round_up : X.t -> to_multiple_of:X.t -> X.t
val round_down : X.t -> to_multiple_of:X.t -> X.t
val round_towards_zero : X.t -> to_multiple_of:X.t -> X.t
val round : ?dir:[ `Zero | `Nearest | `Up | `Down ] -> X.t -> to_multiple_of:X.t -> X.t