About double and float in the memory

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
mxtdom
Noobzor
Noobzor
Posts: 6
Joined: Tue Jan 05, 2021 7:29 am
Reputation: 0

About double and float in the memory

Post by mxtdom »

I have recently started use cheat engine. But got some problem.

1.I found a thing when I browse memory: I can search double values in *0 and *8, but cant find in *4 and *c.

2.Some value i can find : 1f = 1d , 2f = 2d , 3f = 32d , 4f = 512d , 5f = 2048d , How do they convert? How can i calc ?

User avatar
Marc
Table Makers
Table Makers
Posts: 383
Joined: Mon Mar 26, 2018 2:35 pm
Reputation: 398

Re: About double and float in the memory

Post by Marc »

1.: most of the times, values are algned to 4-byte-blocks, meaning *0, *4, *,8, *c.
Doubles are 8 bytes long, so they "skip" 4 and c:)

2: nasty. I prefer letting CE do the job by changing the display type. Perhaps [Link] does the job, did not try it, hehe

mxtdom
Noobzor
Noobzor
Posts: 6
Joined: Tue Jan 05, 2021 7:29 am
Reputation: 0

Re: About double and float in the memory

Post by mxtdom »

Marc wrote:
Fri Apr 09, 2021 9:19 am
1.: most of the times, values are algned to 4-byte-blocks, meaning *0, *4, *,8, *c.
Doubles are 8 bytes long, so they "skip" 4 and c:)

2: nasty. I prefer letting CE do the job by changing the display type. Perhaps [Link] does the job, did not try it, hehe
So I just need uncheck "Fast Scan" , got it thank u

I am sorry that English is not my mother tongue. My expression may not be clear enough.

And for the 2. doubles are 8 bytes long floats are 4 bytes let's split it for two part every part got 4 byte
The part2's value of float is 3f e.g
Then double's value will be 32 ( Usually they are all integers , some values like item num skill levels etc)

The question is , if i got a value of double is 2000 , how can i calc the float value of part2 ( with out CheatEngine )

Post Reply

Who is online

Users browsing this forum: No registered users