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 


Convert 4-Byte to Float

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

Joined: 23 Jan 2023
Posts: 6

PostPosted: Wed Feb 28, 2024 8:49 pm    Post subject: Convert 4-Byte to Float Reply with quote

I tried to look for an answer but found none.

How, for example, do i convert a 4-Byte (Hex 0A(=10)) to a Float(10) ?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 143

Joined: 06 Jul 2014
Posts: 4365

PostPosted: Wed Feb 28, 2024 9:08 pm    Post subject: Reply with quote

Well, you've posted this in the general programming forum, so it's hard to say if you don't specify which programming language...

If you mean assembly, use cvtsi2ss (convert signed integer to scalar single).

_________________
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
TwinShards
How do I cheat?
Reputation: 0

Joined: 23 Jan 2023
Posts: 6

PostPosted: Wed Feb 28, 2024 11:15 pm    Post subject: Reply with quote

Thank, work like charm! Yeah it's for CE's AA.
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