bin_dec_hex - How to use binary, decimal, and hexadecimal notation.
-=for html <div align="right"><a href="bin_dec_hex.pdf">PDF</a> version.</div>
-
=head1 DESCRIPTION
Most people use the decimal numbering system. This system uses ten
Pascal, "#" for HTML. It is common to assume that if a number starts
with a zero, it is octal. It does not matter what is used as long as
you know what it is. I will use "0x" for hexadecimal, "%" for binary
-and "0" for octal. The following numbers are all the same, just their represenatation (base) is different: 021 0x11 17 %00010001
+and "0" for octal. The following numbers are all the same, just their
+representation (base) is different: 021 0x11 17 %00010001
To do arithmetics and conversions you need to understand one more thing.
It is something you already know but perhaps you do not "see" it yet:
(which is just plain 16) four times and write down "4" to get 0xA04?.
Subtract 64 from 69 (69 - 4*16) and the last digit is 5 --> 0xA045.
-The other method builds ub the number from the right. Let's try 41'029
+The other method builds up the number from the right. Let's try 41'029
again. Divide by 16 and do not use fractions (only whole numbers).
41'029 / 16 is 2'564 with a remainder of 5. Write down 5.
basic questions. They will not only get their answer, but at the same
time learn a whole lot more.
-Alex van den Bogaerdt E<lt>alex@ergens.op.het.netE<gt>
+Alex van den Bogaerdt E<lt>alex@vandenbogaerdt.nlE<gt>