Skip to content

Underflow / overflow terms are used incorrectly #108

Open

Description

@Xeverous

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

Activity

  1. maz3max commented on Sep 4, 2019

    @maz3max

    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.

  2. Xeverous commented on Sep 4, 2019

    @Xeverous
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions