-
Notifications
You must be signed in to change notification settings - Fork 489
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
floating point zero handling #54
Comments
Well, the problem is in
This uses a linear approximation of the ln(x) function at x = 1.5 . This is itself a bit fishy, but I suppose we could live with it... for normal floats. With 0.0, it is sub-normal - the most extreme case of sub-normality. We have two options on how to handle this:
I intend to go with option (2.) for now, and open a separate bug for (1.) - unless there are any objections. |
…te: This will probably handle non-0.0/-0.0 denormal numbers properly.
So, fixed on the development branch of my fork. |
…te: This will probably handle non-0.0/-0.0 denormal numbers properly.
When printing "%e" or "%g" with zero as argument, 0e-308 is assumed instead of zero
The text was updated successfully, but these errors were encountered: