Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jan 2001 01:29:53 -0600
From:      Christopher Farley <chris@northernbrewer.com>
To:        "Mark B. Withers" <mwithers@one.net>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: hexidecimal literacy
Message-ID:  <20010127012952.B31323@northernbrewer.com>
In-Reply-To: <20010127022257.A32133@arrakis.desert-power.org>; from mwithers@one.net on Sat, Jan 27, 2001 at 02:20:19AM -0500
References:  <20010127022257.A32133@arrakis.desert-power.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010127012952.B31323>