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 


readFloat/Double not the same as mrValue > DropDownList p

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
sir-gunny
Advanced Cheater
Reputation: 0

Joined: 15 Mar 2012
Posts: 82

PostPosted: Tue Dec 16, 2025 7:58 am    Post subject: readFloat/Double not the same as mrValue > DropDownList p Reply with quote

Hello.

The functions "readFloat" and "readDouble" do not return the same values as in the memoryRecord with type:float.

e.g.:
Hex at address 8899AABB = 0x3A83126F
readFloat(0x8899AABB) returns: 0.0010000000474975
memoryRecord Shows: 0.001000000047

I have a similar problem with readDouble:
Hex at address 8899AABB = 0x0
readDouble(0x8899AABB) returns: 0.0
memoryRecord Shows: 0

When I use this in "myMemRec.DropDownList.Text" (myMemRec..DisplayAsDropDownListItem = true), the value with the description is not displayed, but rather the other number.

e.g.:
dropDownText:
0.0010000000474975:Default
MemRecValue shows: 0.001000000047

At Double Values i get this:
dropDownText:
0.0:Default
MemRecValue shows: 0

How can I format the numbers so that both (readFloat and memrecvalue) are identical?

EDIT:
I just thought of a solution:

Code:
myMemRec.DropDownList.Text = myMemRec.Value .. ":Default"


The thread can be deleted! Sorry!!!!
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 Lua Scripting 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