CalculatorsLesson 155Free preview
Binary Calculator
This lesson is part of Web Developer Tools · All levels
Summary
A binary calculator performs arithmetic operations on base numbers 2, such as addition, subtraction, multiplication, and division, and often displays results in binary, decimal, and hexadecimal. A binary number only uses the digits 0 and 1, with the carry rule when the sum is 2. This exercise with the calculator helps us understand how computers represent numbers.
Key points
- Base 2 has only digits 0 and 1.
- Binary 1011 is equal to decimal 11
- Adding 1 plus 1 gives 0 with carry 1
- A negative number is usually represented by two's complement
- Conversion to decimal is done by adding the bits times the rank of 2
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.