sir-gunny Advanced Cheater
Reputation: 0
Joined: 15 Mar 2012 Posts: 82
|
Posted: Tue Dec 16, 2025 7:58 am Post subject: readFloat/Double not the same as mrValue > DropDownList p |
|
|
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!!!!
|
|