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 


Float Integer Help

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

Joined: 16 Jun 2016
Posts: 1

PostPosted: Thu Jun 16, 2016 4:37 pm    Post subject: Float Integer Help Reply with quote

Hi, I need help with "Float" Value type. I'm obtaining the correct "Float" Value through cheat engine, but when I read the value from the Memory address I get a different value. I've looked into converting float to decimal but the value is still not correct.

Cheat Engine Reads from Address 0x01F6317C a value of 9485.03125

when I read the memory at that location it returns a value of 1185909344

Is there a conversion I need to do?
I tried looking up Floating point to Decimal but was unsucessful.
thanks
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Jun 16, 2016 4:53 pm    Post subject: Reply with quote

Code:
byte[] bytes = ...
float myFloat = BitConverter.ToSingle(bytes, 0);
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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