Digital Circuits Flashcards
How do you convert decimal to binary ?
What is an important thing to remember?
Because you are converting base 10 to base 2, you have to repeatedly divide by 2.
Divide by 2, if there is a remainder add a 1 to the first binary place. First division is b0 .
Divide through until 0!!
How do you fractional number to binary ?
Use a similar technique as with integers, however, multiply 2 instead of divide.
Multiply value by 2, if the value is greater than one, add a one to the first binary place.
For the next place, you take the fractional part of the last multiplication and multiply that. If that again is greater than one, add a 1 to the next binary place.
Continue until the fractional part has become 0.
What do you do if you want to convert a decimal with an integer and fractional part?
calculate separately
What is the most important thing you need to remember when adding binary ?
that 0 is 0
1 is 1
2 is 0
3 is 1
How do you evaluate 0-1 when subtracting binary ?
You have to use a carry, whereby you take a one from the next column and make the the 0 in the current column into 1 0 , which translates to 2 in decimal