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

[IMPROVEMENT] mypow10 parameters or result should be checked to guard against overflow #9

Open
zfields opened this issue Dec 14, 2021 · 0 comments

Comments

@zfields
Copy link
Contributor

zfields commented Dec 14, 2021

Is there a known upper and lower bounds of the exponent, or a LDOUBLE_MAX variable or equivalent (maybe DBL_MAX)? If so, then we could protect against overflow.

The cast() function test against INTMAX_MAX for this very reason.

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

No branches or pull requests

1 participant