Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specification de mod #8262

Closed
vicuna opened this issue Sep 1, 2003 · 1 comment
Closed

specification de mod #8262

vicuna opened this issue Sep 1, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 1, 2003

Original bug ID: 1811
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Damien Doligez
Version: 3.07+beta (2003-08-18)
OS: Mac OS X
Submission from: macaque.inria.fr (128.93.8.158)
Submitted by: doligez

La documentation de mod dit:

If [y] is not zero, the result
of [x mod y] satisfies the following properties:
[x = (x / y) * y + x mod y] and
[abs(x mod y) < abs(y)].

Or c'est faux:

$ ocaml
Objective Caml version 3.07+beta (2003-08-18)

let x = 1 and y = min_int;;

val x : int = 1
val y : int = -1073741824

abs(x mod y) < abs(y);;

  • : bool = false
@vicuna
Copy link
Author

vicuna commented Sep 4, 2003

Comment author: administrator

fixed DD 2003-09-04

@vicuna vicuna closed this as completed Sep 4, 2003
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant