Binary Conversion
Binary conversion appears frequently in National 5 and Higher Computing Science.
Please use the above to practice binary to denary conversion
Binary to Denary
Enter either a 1 or a 0 into the box to see what the denary is:
128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 | |
Denary to Binary
Enter your denary (0 - 255):
128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Binary Range
Enter the number of bits:
Two's Complement |
Two's Complement
Enter denary (-128 -> 127)
-128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 | |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Two's Complement is used to represent negative numbers in binary. The left most bit is used to store the negative of that that column, while the rest remain positive.
Floating Point Representation
Practice Questions
Click to generate a number
Sign (1-bit) | Mantissa (15-bits) | Exponent (8-bits) |
15