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

Re: converting numbers



On Thu, Jan 28, 1999 at 11:57:54AM -0600, David Stern wrote this:
> Where's the FM that tells how to convert numbers, like 0x11A to a 
> "decimal"?

0x0123 is if i don't reccall wrong the way to represent an octal number.
In that case you get it's decimal number this way.

123 base 8 is (3*8^0 + 2*8^1 + 1*8^2 = 3*1 + 2*8 + 1*64 = 83) base 10

Hope this helps you understand.

Regards

// Marwin

-- 
| Björn Elwhagen aka Marwin             Finger marwin@arwen.mumin.nu |	
| Student at Wexio University           for PGP public key.          |
| Sweden                                ICQ: 356095                  | 


Reply to: