• 0

# Why'd I hit a negative number (in damage)?

## Question

Using Banshee's sonar, I ended up hitting a 10 digit number. Can anyone explain how and/or why this happened?

Here is the screenshot of it.

## Recommended Posts

https://imgur.com/

##### Share on other sites

14 minutes ago, (PS4)Opal-Blue said:

Using Banshee's sonar, I ended up hitting a 10 digit number. Can anyone explain how and/or why this happened?

Here is the screenshot of it.

If memory serves, it means you hit a number so high that it went past the highest value allowed in game and overflowed into negative.

As far as I know though, it is only a visual glitch, it does not heal the target. It has something to do with 32 bit integers and a bunch of other programming stuff I don't remember all the details of right now.

##### Share on other sites

50 minutes ago, Tesseract7777 said:

If memory serves, it means you hit a number so high that it went past the highest value allowed in game and overflowed into negative.

As far as I know though, it is only a visual glitch, it does not heal the target. It has something to do with 32 bit integers and a bunch of other programming stuff I don't remember all the details of right now.

Signed integers, where the leftmost bit is also used to indicate the polarity (+ve or -ve) of the value. So in a 32-bit signed integer, the maximum positive number attainable is 2,147,483,647 which is 01111111 11111111 11111111 11111111. If you add 1 more to this value, you get -2,147,483,648 because this is 10000000 00000000 00000000 00000000, and since the leftmost bit is 1, the value becomes a negative number.

##### Share on other sites

Okay, thank you for explaining it.