Clarence wrote:

No need to look for it BTW, this was written off-list. I guess you don't
mind if I take what I want from a lengthy mail and take it on-list for my
own purposes do you Clarence? <EG>

>A number is a number and no matter what name you give to it, it is still
>the same number of apples:

Not really, how much (in an unsigned integer) is "-1" apple(s)? This
depends on the size of the variable/register that holds it. And there's no
octal, binary or hexadecimal for that ;-)
Yes, I'm "cheating" and no the teachers at university didn't like using
signs like this.

>eg  10 Decimal, 0A Hexadecimal, 12 Octal and 1010 binary all describe the
>exact same number of widgets.

It's worth to note that there are a few standardized ways to display the
numbers.
Decimal has no change to it, so 10 means ten
Hexadecimal has either an H (sometimes small) behind it (0AH), 0x infront
(0x0A) or $ infront ($0A). 0x is used mostly by C programmers and UNIX
users, as a DOS user you should use H to fit in. I have no idea what for
instance Windows users use, but they probably never use such complex things :/
Octal has a 0 as it's first number, so 0111 means 7 (or read, write and
execute if you speak linux rights fluently <g>)
And for binary a b is often added (00100000b), additionally a colon is
often added to make it easier to convert into hexadecimal (0010:0000 =
0x20) and this often dropps the b.
//Bernie

Reply via email to