How Computers Handle Negative Numbers (And Sometimes Get It Wrong)

How Computers Handle Negative Numbers (And Sometimes Get It Wrong)

The digital world runs on binary. But while numbers made up of ones and zeroes is easy enough to get your head round, what happens when you need to express a negative number in digital form?

In fact, it’s not too dissimilar to the way we put a minus sign at the left-most side of a number: you simply place a sign bit at the left, which takes a value of 0 or 1 if the number is positive or negative. But, as Professor Brailsford explains in this video, it doesn’t always go to plan — and it can be embarrassing, or even dangerous, when it goes wrong. [Computerphile]


The Cheapest NBN 50 Plans

It’s the most popular NBN speed in Australia for a reason. Here are the cheapest plans available.

At Gizmodo, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.