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 


Don't understand CE memory values

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

Joined: 30 Oct 2020
Posts: 30
Location: The netherlands

PostPosted: Mon Nov 02, 2020 1:05 pm    Post subject: Don't understand CE memory values Reply with quote

See the screenshot..my memory location is both 500 (float) and a large integer (1140457472)..how can these both be true?

Tried to ask this on Stackoverflow but they were just like 'uhh that cant be, closing question' lol



mem.jpg
 Description:
 Filesize:  62.52 KB
 Viewed:  1717 Time(s)

mem.jpg


Back to top
View user's profile Send private message
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Mon Nov 02, 2020 1:46 pm    Post subject: Reply with quote

aob = 00 00 FA 43
4byte (hex)form = 43FA0000
4byte (int)form = 1140457472
4byte Float form = 500.00
Back to top
View user's profile Send private message
kagato1980
Cheater
Reputation: 0

Joined: 30 Oct 2020
Posts: 30
Location: The netherlands

PostPosted: Mon Nov 02, 2020 2:39 pm    Post subject: Reply with quote

Yes those are the datatypes, I understand..but what I'm struggling with is the float is such a small number, and the int form so large? Maybe I should read a bit about floating point values first
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Mon Nov 02, 2020 3:37 pm    Post subject: Reply with quote

https://en.m.wikipedia.org/wiki/IEEE_754
_________________
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
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4703

PostPosted: Mon Nov 02, 2020 3:38 pm    Post subject: Reply with quote

Everything gets converted to 0s and 1s (bits) when stored as data on a computer. Those different values you're seeing - i.e. integers and floats - are different ways of interpreting the same sequence of 0s and 1s. Viewing one type of data as another doesn't make sense most of the time.

Unsigned integers are just stored in base 2. Signed integers use two's complement. Floating point values are encoded as is defined in technical standard IEEE 754 & ISO/IEC 60559. All multi-byte values are stored in little endian.
For floating point numbers, read this for a basic introduction:
http://steve.hollasch.net/cgindex/coding/ieeefloat.html

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
kagato1980
Cheater
Reputation: 0

Joined: 30 Oct 2020
Posts: 30
Location: The netherlands

PostPosted: Mon Nov 02, 2020 3:55 pm    Post subject: Reply with quote

Thanks y'all I'll check it out
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