[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: converting numbers



Björn Elwhagen <marwin@localbar.com> writes:

> 0x0123 is if i don't reccall wrong the way to represent an octal
> number.

No. 0x "always" means that a hexadecimal number follows.

Ocal is "traditionally" indicated by having a leading zero but
no x. Outside contexts where one KNOWS that this convention is
or is not followed, it cannot be advised to write numbers with
leading zeroes.

-- 
Henning Makholm
http://www.diku.dk/students/makholm


Reply to: