You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 3573 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Pascal Cuoq
Version: 3.08
OS: Mac OS X
Submission from: is002567.saclay.cea.fr (132.166.134.173)
In the documentation of modules Int32 and Int64,
the operations div and rem are documented this way :
val div : int64 -> int64 -> int64
Integer division. Raise Division_by_zero if the second argument is zero. This
division rounds the real quotient of its arguments towards zero, as specified
for (/).
val rem : int64 -> int64 -> int64
Integer remainder. If y is not zero, the result of Int64.rem x y satisfies the
following properties: Int64.zero <= Int64.rem x y < Int64.abs y and x =
Int64.add (Int64.mul (Int64.div x y) y) (Int64.rem x y). If y = 0, Int64.rem x y
raises Division_by_zero.
These properties are not compatible. The current implementation does
not satisfy the "Int64.zero <= Int64.rem x y" part.
The text was updated successfully, but these errors were encountered:
Integer division. Raise Division_by_zero if the second argument is zero. This
division rounds the real quotient of its arguments towards zero, as specified
for (/).
val rem : int64 -> int64 -> int64
Integer remainder. If y is not zero, the result of Int64.rem x y satisfies
the
following properties: Int64.zero <= Int64.rem x y < Int64.abs y and x =
Int64.add (Int64.mul (Int64.div x y) y) (Int64.rem x y). If y = 0, Int64.rem x
y
raises Division_by_zero.
These properties are not compatible. The current implementation does
not satisfy the "Int64.zero <= Int64.rem x y" part.
Bien vu. J'ai corrige ce probleme. Merci pour le rapport.
Original bug ID: 3573
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Pascal Cuoq
Version: 3.08
OS: Mac OS X
Submission from: is002567.saclay.cea.fr (132.166.134.173)
In the documentation of modules Int32 and Int64,
the operations div and rem are documented this way :
val div : int64 -> int64 -> int64
Integer division. Raise Division_by_zero if the second argument is zero. This
division rounds the real quotient of its arguments towards zero, as specified
for (/).
val rem : int64 -> int64 -> int64
Integer remainder. If y is not zero, the result of Int64.rem x y satisfies the
following properties: Int64.zero <= Int64.rem x y < Int64.abs y and x =
Int64.add (Int64.mul (Int64.div x y) y) (Int64.rem x y). If y = 0, Int64.rem x y
raises Division_by_zero.
These properties are not compatible. The current implementation does
not satisfy the "Int64.zero <= Int64.rem x y" part.
The text was updated successfully, but these errors were encountered: