Order Tray | Contact Us | Home | SIG Lists

[aprssig] A funny packet story/joke (The KISS guys will get it)

Curt, WE7U archer at eskimo.com
Wed Nov 9 15:44:52 UTC 2005


On Tue, 8 Nov 2005, Tad Burnett wrote:

> Then 377 = 255 = FF ???

Somehow I infer from your question that you already know the answer.
Yes!

Of course the first one would have to be in octal, the 2nd in
decimal, and the third in hexadecimal...  Methinks you're just
trying to confuse everybody.  ;-)  In the above there's no
indication which number system you're using.

Each one of the above would be 1111 1111 in binary.  Put them in
groups of three (starting from the right) for octal, which yields
11 111 111, or 0377 (the leading zero signifies octal in C-code).

Use groups of four for hexadecimal, 1111 1111 or 0xFF (leading "0x"
signifies hexadecimal in C-code).

Some compilers and assemblers accept "0b" as the prefix for binary,
so it'd be 0b11111111.

So the proper way to ask the question above would be:

    Then 0377 = 255 = 0xff?

plus it also equals 0b11111111.  Four ways to represent the exact
same number.  Ain't computers fun?

--
Curt, WE7U.   APRS Client Comparisons: http://www.eskimo.com/~archer
"Lotto:    A tax on people who are bad at math." -- unknown
"Windows:  Microsoft's tax on computer illiterates." -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"




More information about the aprssig mailing list