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

abs min_int returns min_int #8257

Closed
vicuna opened this issue Aug 29, 2003 · 0 comments
Closed

abs min_int returns min_int #8257

vicuna opened this issue Aug 29, 2003 · 0 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Aug 29, 2003

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

Bug description

Full_Name: Christoph Bauer
Version: 3.07 beta 2
OS: Linux
Submission from: dialin-212-144-207-013.arcor-ip.net (212.144.207.13)

The manual describes the function "abs" as

"Return the absolute value of the argument."

This is not quite true:

    Objective Caml version 3.07+beta 2

abs min_int;;

  • : int = -1073741824

IMO abs should throw a Failure exception or the manual should
point out this behavior.

@vicuna vicuna closed this as completed Sep 1, 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