/
What is a signed versus unsigned integer?

What is a signed versus unsigned integer?

A signed integer is one which can be negative. In other words it has a positive (+) or negative (-) sign in front of it.

Computers will treat the top bit as the “sign” bit in a number.

Related content

Unsigned integers don't protect you as much as you would think.
Unsigned integers don't protect you as much as you would think.
More like this
Integer Overflow Errors
Integer Overflow Errors
More like this
How does binary work?
How does binary work?
More like this
Basics of how binary counting works
Basics of how binary counting works
More like this
How do computers represent negative numbers?
How do computers represent negative numbers?
More like this
What are bits, bytes and 32 bit and 64 bit numbers in computers?
What are bits, bytes and 32 bit and 64 bit numbers in computers?
More like this