diff --git a/src/core/CCInt32.mli b/src/core/CCInt32.mli index ee62d1fd..6cf7e6c0 100644 --- a/src/core/CCInt32.mli +++ b/src/core/CCInt32.mli @@ -143,7 +143,8 @@ module Infix : sig val ( mod ) : t -> t -> t (** [x mod y] is the integer remainder of [x / y]. - If [y <> zero], the result of [x mod y] satisfies the following property: + If [y <> zero], the result of [x mod y] satisfies the following properties: + [zero <= x mod y < abs y] and [x = ((x / y) * y) + (x mod y)]. If [y = 0], [x mod y] raises [Division_by_zero]. *) diff --git a/src/core/CCInt64.mli b/src/core/CCInt64.mli index e849e98c..a7c4307c 100644 --- a/src/core/CCInt64.mli +++ b/src/core/CCInt64.mli @@ -146,7 +146,8 @@ module Infix : sig val ( mod ) : t -> t -> t (** [x mod y] is the integer remainder of [x / y]. - If [y <> zero], the result of [x mod y] satisfies the following property: + If [y <> zero], the result of [x mod y] satisfies the following properties: + [zero <= x mod y < abs y] and [x = ((x / y) * y) + (x mod y)]. If [y = 0], [x mod y] raises [Division_by_zero]. *)