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

Real.fromString can raise Overflow on large/small values #9

Open
Eckankar opened this issue Apr 9, 2011 · 1 comment
Open

Real.fromString can raise Overflow on large/small values #9

Eckankar opened this issue Apr 9, 2011 · 1 comment

Comments

@Eckankar
Copy link
Contributor

Eckankar commented Apr 9, 2011

Real.fromString may raise Overflow, if presented with too large or too small a value.

Example:

 load "Real";
 val a = Real.fromString "1e-400";
 val b = Real.fromString "1e400";

As far as I can tell, the specification says, that in these cases it should return zero (if too small in magnitude) or infinity (if too large in magnitude).

@kfl
Copy link
Owner

kfl commented Apr 14, 2011

You are right. Moscow ML unfortunately stray from the definition several places wrt the real type.

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

2 participants