From owner-freebsd-questions Fri Jan 26 23:30: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from seward.nbrewer.com (nbrewer.dsl.visi.com [208.42.141.101]) by hub.freebsd.org (Postfix) with ESMTP id 9609337B402 for ; Fri, 26 Jan 2001 23:29:44 -0800 (PST) Received: (from chris@localhost) by seward.nbrewer.com (8.11.1/8.11.1) id f0R7Tr532079; Sat, 27 Jan 2001 01:29:53 -0600 (CST) (envelope-from chris) Date: Sat, 27 Jan 2001 01:29:53 -0600 From: Christopher Farley To: "Mark B. Withers" Cc: freebsd-questions Subject: Re: hexidecimal literacy Message-ID: <20010127012952.B31323@northernbrewer.com> Mail-Followup-To: Christopher Farley , "Mark B. Withers" , freebsd-questions References: <20010127022257.A32133@arrakis.desert-power.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010127022257.A32133@arrakis.desert-power.org>; from mwithers@one.net on Sat, Jan 27, 2001 at 02:20:19AM -0500 Organization: Northern Brewer, St. Paul, MN Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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