Appendix C: Reference Material; Binary Coding And Conversions; Binary-Decimalconversions - HP 7470A Interfacing And Programming Manual

Graphics plotter
Hide thumbs Also See for 7470A:
Table of Contents

Advertisement

Appendix
Reference Material
Binary Coding and Conversions
Binary is a base 2 number system using only 1's and 0's. By giving the
1's and 0's'positional value, any decimal number can be represented.
For example, this diagram shows how decimal 41 = binary 101001:
Decimal
4><101+1><100
4><10 +1>< 1
4
110
Binary
1>< 25+o>< 24+1><23+0><22+0><21+1><20
1><32 +O><16 +1><8 +0><4 +0><2 +1><1
1
0
1
0
0
12
Binary—DecimalConversions
To convert from binary to decimal, the positional Values of the 1's are
added up. From the above example, this would be:
25+23+20=32+8+1=41
To convert from decimal to binary, the decimal number is divided by 2.
The remainder is the binary equivalent. For example:
Remainder
(read up)
2 [711
~
1
2 %
~
0
2 W
"
0
=Binary 101001
2 ["5
~
1
2 .7
~
0
2 ["1
~
1
REFERENCE MATERIAL C-1

Advertisement

Table of Contents
loading

Table of Contents