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

Underflow / overflow terms are used incorrectly #108

Open
Xeverous opened this issue Aug 22, 2019 · 2 comments
Open

Underflow / overflow terms are used incorrectly #108

Xeverous opened this issue Aug 22, 2019 · 2 comments

Comments

@Xeverous
Copy link

03-Style - line 368

The text mentions "integer underflow". There is no such thing. Underflow (that is, truncation to zero) happens only for floating point types.

https://stackoverflow.com/questions/6360049/what-are-arithmetic-underflow-and-overflow-in-c

@maz3max
Copy link

maz3max commented Sep 4, 2019

Curious. I always thought integer underflow meant passing the lowest representable number. Not sure if I am too happy with calling it integer overflow or integer wrap-around instead.

@Xeverous
Copy link
Author

Xeverous commented Sep 4, 2019

Think of overflow as an absolute value that is too large to fit inside.

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

2 participants