Skills Binary Calc Hex Calc Sci Notation Negative Fractions

Negative Values


Use this calculator to explore the representation of a signed integer using 8 bits

-128
64
32
16
8
4
2
1
 0
 0
 0
 0
 0
 0
 0
 0
0

Explore the way a negative value can be represented with 8 bits

Discover the lowest and highest value that can be represented by a signed 8 bit integer

Discover the number of values that can be represented by a signed 8 bit integer


A method for formatting a byte to show a negative number.

Enter the required value as a positive number between 1 and 127 (leave the left hand bit as 0)

For example 0 1 1 0 1 1 0 0 to show denary 108

Starting from the left, reverse (NOT) the values of all bits except the first one, for example 0 0 0 1 0 0 1 1

Add 1 for example 0 0 0 1 0 0 1 1 + 1 = 0 0 0 1 0 1 0 0 to show denary 20

Change the sign bit to 1 to get 1 0 0 1 0 1 0 0 that is denary -108 (Note, -128 + 20 = -108)