Just a theory but, the 0 probably signifies that the string is numeric
whether it be decimal, hexadecimal, etc vc. Actual text.

http://www.webopedia.com/TERM/H/hexadecimal.html

"Refers to the base-16 number system, which consists of 16 unique
symbols: the numbers 0 to 9 and the letters A to F. For example, the
decimal number 15 is represented as F in the hexadecimal numbering
system. The hexadecimal system is useful because it can represent every
byte (8 bits) as two consecutive hexadecimal digits. It is easier for
humans to read hexadecimal numbers than binary numbers. 

To convert a value from hexadecimal to binary, you merely translate each
hexadecimal digit into its 4-bit binary equivalent. Hexadecimal numbers
have either and 0x prefix or an h suffix. For example, the hexadecimal
number 

0x3F7A 

translates to the following binary number: 0011 1111 0111 1010 "

Dennis Olson

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of
Marc Thach Xuan Ky
Sent: Thursday, April 04, 2002 5:29 AM
To: [EMAIL PROTECTED]
Subject: Re: what does 0 in 0Xnnnn mean? [7:40372]


I guess then when you are writing a parser for a compiler then it helps
if all numeric constants start with a numeric. Marc

Wes Stevens wrote:
> 
> We need to find an old ibm'er for that answer I think. I know that 0x 
> has been used on ibm systems since before cisco made it's first 
> router.
> 
> >From: "Priscilla Oppenheimer"
> >Reply-To: "Priscilla Oppenheimer"
> >To: [EMAIL PROTECTED]
> >Subject: Re: what does 0 in  0Xnnnn mean? [7:40372]
> >Date: Wed, 3 Apr 2002 17:22:17 -0500
> >
> >I think editors like to thrown in leading zeros. For example, you 
> >will notice that they never let you get away with saying something 
> >like .534.
It
> >has to be 0.534. Supposedly that's easier to read.
> >
> >I didn't know octal was 0d. I bet they had to do that because of the 
> >other rule that you have to start with 0. 0o or 0O would be too hard 
> >to parse if they were to use o or O for octal. ;-)
> >
> >Priscilla
> >
> >At 04:40 PM 4/3/02, John Neiberger wrote:
> > >I think the question is what does the '0' specifically refer to?  
> > >We know that 0x indicates hex, but I'm guessing he's asking why we 
> > >don't simply use x instead of 0x, or d for octal instead of 0d.
> > >
> > >Speaking of that, why is octal 0d?  I'd think that 'd' should mean 
> > >decimal.
> > >
> > >John
> > >
> > > >>> "Persio Pucci"  4/3/02 2:16:55 PM >>>
> > >That indicates that the notation in use is hexadecimal for the 
> > >registry number i.e. 0x2102 set the registry bits to 10000100000010
> > >
> > >Persio
> > >
> > >----- Original Message -----
> > >From: "Jeffrey Reed"
> > >To:
> > >Sent: Wednesday, April 03, 2002 5:12 PM
> > >Subject: what does 0 in 0Xnnnn mean? [7:40372]
> > >
> > >
> > > > Here s a good question an intern asked me and I couldn t even
> > >make-up an
> > > > answer
> > > >
> > > > I was working with him showing how to recover a password and we 
> > > > were changing the confreg setting. He asked what the leading 0 
> > > > before the
> > >X
> > > > represented. I m not sure  any help from the group is
> > >appreciated.
> > > >
> > > > Jeffrey Reed
> > > > Classic Networking, Inc.
> > > > Cell 717-805-5536
> > > > Office 717-737-8586
> > > > FAX 717-737-0290
> >________________________
> >
> >Priscilla Oppenheimer
> >http://www.priscilla.com
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com




Message Posted at:
http://www.groupstudy.com/form/read.php?f=7&i=40469&t=40372
--------------------------------------------------
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]

Reply via email to