BullyWiiHacks
Welcome dear guest!

To start posting and being part of the community, you simply need to register an account or log into an existing one.

Be sure to check out disposable e-mail services, in case you prefer using one for this site instead of your legit address: http://10minutemail.com/10MinuteMail/

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can see and download all content provided for regular members even without an account!

Your contributions will be greatly appreciated though, give it a shot and register today!
BullyWiiHacks

Gaming, Modding & Programming

Important reminders:

- Click *HERE* for advanced forum search or check out the text field below on the front page for Google before posting
- NO support via private message (use the forum)
- Write meaningful topic titles
Site Translation
Search

Display results as :

October 2017
MonTueWedThuFriSatSun
1
2345678
9101112131415
16171819202122
23242526272829
3031

Calendar

Country Statistics
LaTeX Generator

Message [Page 1 of 1]

#### Bully@WiiPlaza

Introduction

You might know how to convert hexadecimal values to decimal values using a website like Geckocodes or the Windows Calculator but what about doing it manually?

First of all you need to know that hexadecimal is base 16. The following table explains which hexadecimal digit converts into which decimal number.

Conversion Table

 Decimal Hexadecimal 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 A 11 B 12 C 13 D 14 E 15 F
Note that after 9 the next number in hexadecimal is A and NOT 10. 10 is 16 in decimal. The letters from A to F can also be written in lowercase so it comes down to personal preference whether you spell them in capital or not.

In order to convert a hexadecimal number to decimal we need to take the digits individually from the right of the given number, convert them to decimal using the table above and multiply each of them with $\bg_white 16^i$ where $\bg_white i$ is the current index of the digit we took starting at $\bg_white 0$. Finally, all products are added up.

For the ones who love formulas:
$\bg_white \sum_{i = 0}^{n - 1}hexadecimalToDecimal(h[i]) \cdot 16^i$
where $\bg_white n$ is the length of the number to convert, $\bg_white h$ the number to convert and $\bg_white hexadecimalToDecimal()$ the table lookup/conversion function using the table from above.

Example

Convert $\bg_white 0xCC07C9$ to decimal manually.

$\bg_white 9 \cdot 16^0 + 12 \cdot 16^1 + 7 \cdot 16^2 + 0 \cdot 16^3 + 12 \cdot 16^4 + 12 \cdot 16^5 = 13371337$

The result of the expression on the left can be calculated with for example WolframAlpha if you're don't want to do the Math by hand.

Enjoy

_________________