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!

Join the forum, it's quick and easy

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
Would you like to react to this message? Create an account in a few clicks or log in to continue.
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
Latest topics
Search

Display results as :

October 2021
MonTueWedThuFriSatSun
123
45678910
11121314151617
18192021222324
25262728293031

Calendar

Country Statistics

You are not connected. Please login or register

2 posters

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 don't want to do the math by hand.

Enjoy

Last edited by Bully@WiiPlaza on 1/21/2020, 8:22 am; edited 1 time in total

_________________

#### SnB@BWH

"I did what you said" and I got 1837001. I'm obviously not doing something right. However, I'm pretty sure I did all the instructions and even followed along on another tutorial on how to do it and I just don't see how my answer is different than yours.

_________________

: SnB_BWH#2732

#### SnB@BWH

Update: I figured it out a while back. I just didn't understand powers at the time. You have to multiply the multiplication answer by the exponent.

_________________

: SnB_BWH#2732