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 


How numbers are represented

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
nospamforme9
How do I cheat?
Reputation: 0

Joined: 26 Jun 2011
Posts: 4

PostPosted: Sun Jun 26, 2011 10:17 am    Post subject: How numbers are represented Reply with quote

Hello,

Let's say I have a c++ program and it has the following code in it:
Code:

if (number > 0.3) ...

How can I find 0.3? How is it stored? As a float?
Is it like this: cmp eax,02355444? (suppose 02355444 is 0.3)

When I scan in cheat engine for 0.3 as float I get loads of results.
But I only want to scan in the .text section or wherever 0.3 is stored.

Ty
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25797
Location: The netherlands

PostPosted: Sun Jun 26, 2011 10:28 am    Post subject: Reply with quote

It depends on the compiler, often it uses fld [00801234] and 00801234 contains 0.3

Check if the address is green, if it's green it's part of the module

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
nospamforme9
How do I cheat?
Reputation: 0

Joined: 26 Jun 2011
Posts: 4

PostPosted: Mon Jun 27, 2011 4:10 am    Post subject: Reply with quote

Ty Dark Byte.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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