From owner-freebsd-questions Fri Jan 26 23:47:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail1.one.net (mail.one.net [206.112.192.107]) by hub.freebsd.org (Postfix) with ESMTP id AE1B137B400 for ; Fri, 26 Jan 2001 23:46:52 -0800 (PST) Received: from ip-216-23-52-102.adsl.one.net ([216.23.52.102] EHLO arrakis.desert-power.org ident: IDENT-NOT-QUERIED [port 35332]) by mail.one.net with ESMTP id <935712-25852>; Sat, 27 Jan 2001 02:47:32 -0500 Received: (from mwithers@localhost) by arrakis.desert-power.org (8.9.3/8.9.3) id CAA32329; Sat, 27 Jan 2001 02:49:19 -0500 (EST) (envelope-from mwithers) From: "Mark B. Withers" To: Christopher Farley Cc: freebsd-questions Subject: Re: hexidecimal literacy Message-ID: <20010127024918.C32133@arrakis.desert-power.org> References: <20010127022257.A32133@arrakis.desert-power.org> <20010127012952.B31323@northernbrewer.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20010127012952.B31323@northernbrewer.com>; from chris@northernbrewer.com on Sat, Jan 27, 2001 at 02:30:15AM -0500 Date: Sat, 27 Jan 2001 02:47:23 -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kewl! Thanks everyone for the help! I've studied it before but am quite rusty. Mark On Sat, Jan 27, 2001 at 02:30:15AM -0500, Christopher Farley wrote: > Mark B. Withers (mwithers@one.net) wrote: > > > I was wondering if someone could help me with understanding > > hexidecimal numbers used in FreeBSD? > > This reminds me of the Onion story "Microsoft Patents 1s, 0s"... > > > I can relate mentally to the concept that the numeral system is based > > on 16 instead of 10 like decimal numbers are. > > > > Is the prefix 0x always used? What does the 0x mean? > > The prefix 0x is always used to denote a hexidecimal number. The prefix > 0 is used to denote an octal (base-8) number. > > Why ask why? > > > Would the hexidecimal number 0xf mean 16? > > Actually, it's 15. 0x10 would be 16. > > -- > Christopher Farley > www.northernbrewer.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message