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

fabs in Pervasives would be nice #6259

Closed
vicuna opened this issue Dec 4, 2013 · 1 comment
Closed

fabs in Pervasives would be nice #6259

vicuna opened this issue Dec 4, 2013 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Dec 4, 2013

Original bug ID: 6259
Reporter: berenger
Status: closed (set by @zoggy on 2013-12-04T07:32:42Z)
Resolution: not a bug
Priority: normal
Severity: minor
Platform: all
OS: all
OS Version: all
Version: 4.01.0
Category: standard library

Bug description

let fabs x =
if x < 0.0
then -.x
else x

Additional information

As a scientific programmer, I am against float racism.

@vicuna
Copy link
Author

vicuna commented Dec 4, 2013

Comment author: @zoggy

Pervasives.abs_float is already there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant