Re: what does 0 in 0Xnnnn mean? [7:40372]
I asked a couple of "old" IBMers, (20+ and 30+ years). They both said it was around before they were. 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 0X 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 110010 > > > > > >Persio > > > > > >- Original Message - > > >From: "Jeffrey Reed" > > >To: > > >Sent: Wednesday, April 03, 2002 5:12 PM > > >Subject: what does 0 in 0X 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=41044&t=40372 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
RE: what does 0 in 0Xnnnn mean? [7:40372]
Actually the answer to this is very simple... The '0x' means hexadecimal - this has been mentioned several times. The '0' indicates that it is a number, as opposed to a variable. "0xff" can be interpreted by the parser as a number, but "xff" would be interpreted as a variable name... Mike Bray [EMAIL PROTECTED] -Original Message- From: Marko Milivojevic [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 7:22 PM To: [EMAIL PROTECTED] Subject: RE: what does 0 in 0X mean? [7:40372] >I know that... by why? What's the origin of the 0X? In Cisco devices - most probably the same notation as used in C programming language. Why is that way in C is computer history and I think that I missed that class :-) Marko. Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=40811&t=40372 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
RE: what does 0 in 0Xnnnn mean? [7:40372]
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 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 0X 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 110010 > > > > > >Persio > > > > > >- Original Message - > > >From: "Jeffrey Reed" > > >To: > > >Sent: Wednesday, April 03, 2002 5:12 PM > > >Subject: what does 0 in 0X 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]
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 0X 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 110010 > > > > > >Persio > > > > > >- Original Message - > > >From: "Jeffrey Reed" > > >To: > > >Sent: Wednesday, April 03, 2002 5:12 PM > > >Subject: what does 0 in 0X 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=40456&t=40372 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
RE: what does 0 in 0Xnnnn mean? [7:40372]
>I know that... by why? What's the origin of the 0X? In Cisco devices - most probably the same notation as used in C programming language. Why is that way in C is computer history and I think that I missed that class :-) Marko. Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=40415&t=40372 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
Re: what does 0 in 0Xnnnn mean? [7:40372]
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 0X 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 110010 > > > >Persio > > > >- Original Message - > >From: "Jeffrey Reed" > >To: > >Sent: Wednesday, April 03, 2002 5:12 PM > >Subject: what does 0 in 0X 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=40408&t=40372 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
RE: what does 0 in 0Xnnnn mean? [7:40372]
I know that... by why? What's the origin of the 0X? Jeffrey Reed Classic Networking, Inc. -Original Message- From: Lomker, Michael [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 3:32 PM To: 'Jeffrey Reed'; [EMAIL PROTECTED] Subject: RE: what does 0 in 0X mean? [7:40372] > 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. "0x" denotes a hexadecimal number rather than decimal. Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=40384&t=40372 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
Re: what does 0 in 0Xnnnn mean? [7:40372]
0x means that the number is in hex. So for example 0xFF is equal to 255. Paul - Original Message - From: "Jeffrey Reed" To: Sent: Wednesday, April 03, 2002 3:12 PM Subject: what does 0 in 0Xnnnn mean? [7:40372] > Heres a good question an intern asked me and I couldnt 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. Im 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 Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=40385&t=40372 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
RE: what does 0 in 0Xnnnn mean? [7:40372]
Not sure if this is a satisfactory answer, but I believe the convention harkens back to Kernighan and Ritchie, the inventors of the C programming language. 0x was an indicator for a hex value; 0 alone was an indicator for octal. I have no clue why 0d was used for octal in Cisco-ese. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of John Neiberger Sent: Wednesday, April 03, 2002 1:41 PM To: [EMAIL PROTECTED] Subject: Re: what does 0 in 0X mean? [7:40372] 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 110010 Persio - Original Message - From: "Jeffrey Reed" To: Sent: Wednesday, April 03, 2002 5:12 PM Subject: what does 0 in 0X 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 Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=40402&t=40372 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
Re: what does 0 in 0Xnnnn mean? [7:40372]
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 110010 > >Persio > >- Original Message - >From: "Jeffrey Reed" >To: >Sent: Wednesday, April 03, 2002 5:12 PM >Subject: what does 0 in 0X 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 Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=40400&t=40372 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
Re: what does 0 in 0Xnnnn mean? [7:40372]
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 110010 Persio - Original Message - From: "Jeffrey Reed" To: Sent: Wednesday, April 03, 2002 5:12 PM Subject: what does 0 in 0X 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 Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=40393&t=40372 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
Re: what does 0 in 0Xnnnn mean? [7:40372]
That indicates that the notation in use is hexadecimal for the registry number i.e. 0x2102 set the registry bits to 110010 Persio - Original Message - From: "Jeffrey Reed" To: Sent: Wednesday, April 03, 2002 5:12 PM Subject: what does 0 in 0Xnnnn mean? [7:40372] > Heres a good question an intern asked me and I couldnt 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. Im 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 Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=40386&t=40372 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
RE: what does 0 in 0Xnnnn mean? [7:40372]
> 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. "0x" denotes a hexadecimal number rather than decimal. Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=40380&t=40372 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
what does 0 in 0Xnnnn mean? [7:40372]
Heres a good question an intern asked me and I couldnt 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. Im 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 Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=40372&t=40372 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]