Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Teach me how to calculate HEX~

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
royalsymbol
Cheater
Reputation: 0

Joined: 14 Nov 2007
Posts: 36

PostPosted: Mon Jan 14, 2008 8:27 am    Post subject: Teach me how to calculate HEX~ Reply with quote

Hi,
i want to learn how to calculate HEX. i got windows calculator but i don't know how to calculate HEX lol = = i clicked sientific and click hex then whats next? like 64 = 99 somehow >.> how to calculate others? someone teach me please
Back to top
View user's profile Send private message
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Mon Jan 14, 2008 9:21 am    Post subject: Reply with quote

Code:
Hex to decimal:
Number in hex 2F.
Hex Bases 16³  16²  16¹ 16[size=14]⁰[/size]
         -↓↓---↓↓---↓↓--↓↓-
         4096  256  16   1
         -----------------
number:  0     0    2    F

So: 16*2 + F*1 = 32+ 1*15 = 32 + 15 = 47


Decimal: 47
Smile
Back to top
View user's profile Send private message
Deine Mutter
Expert Cheater
Reputation: 1

Joined: 05 Apr 2006
Posts: 181

PostPosted: Mon Jan 14, 2008 9:53 am    Post subject: Reply with quote

decimal = hex

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

Code:

hex: 53A

| 16² | 16 | 1 |
----------------
|  5  | 3  | A |

=

| 16² | 16 | 1 |
----------------
|  5  | 3  | 10|

10*1 + 3*16 + 5*16² =
 10  +  48  + 1280 = 1338

_________________
Back to top
View user's profile Send private message
killersamurai
Expert Cheater
Reputation: 0

Joined: 10 Sep 2007
Posts: 197
Location: Colorado

PostPosted: Mon Jan 14, 2008 10:19 am    Post subject: Reply with quote

Say that you have the number 167 in decimal. What you want to do is divide that by 16 because hex is of base 16. You take what ever is to the right of the decimal and multiply that by 16. That will give you the number. Keep doing it till you reach 0.

Code:

167 / 16 = 10.4375 = .4375 * 16 = 7
10 / 16 =  0.625 = .625 * 16 = 10 (10 is equal to A in hex)
Your answer is A7


To get the decimal.
Code:

7 * (16 to the zero power) 16 ^ 0 = 7
10 (A) * 16 ^ 1 = 160

160 + 7 = 167

increase the power if there are more numbers


This method works with binary and octal. You just need to change the base. To get the value in calculator, choose your number system, enter something in and click on a different system. That will do the conversion. By the way, 64h = 100d. 63h = 99d
Back to top
View user's profile Send private message
royalsymbol
Cheater
Reputation: 0

Joined: 14 Nov 2007
Posts: 36

PostPosted: Mon Jan 14, 2008 11:02 am    Post subject: Reply with quote

guys~ i'm trying to learn how to use the windows calculator to calculate hex~!! click which button? >.> plus or minus , etc.. thanks.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Jan 14, 2008 11:27 am    Post subject: Reply with quote

royalsymbol wrote:
guys~ i'm trying to learn how to use the windows calculator to calculate hex~!! click which button? >.> plus or minus , etc.. thanks.


It will do the conversion for you when you select hex.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites