WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: γRB on July 02, 2013, 09:20:57 PM

Title: Manually convert int to float
Post by: γRB on July 02, 2013, 09:20:57 PM
I was kinda curious about that, since well, with the loads of projects over here, I needed it anytime soon. I know you need to add the mantissa and all that shizzle. But has any of you made an Assembly code for it?
Title: Re: Manually convert int to float
Post by: dcx2 on July 02, 2013, 09:29:01 PM
Search forum for "int float".

Integer to floating point conversion example: http://wiird.l0nk.org/forum/index.php/topic,6593.0.html

Bonus points, float to int conversion example: http://wiird.l0nk.org/forum/index.php/topic,9398.0.html

Trivia: The second example was written by me without even having access to the game, purely based on Thomas83lin's 04 code.  ;D
Title: Re: Manually convert int to float
Post by: Bully@Wiiplaza on July 03, 2013, 11:38:11 AM
The 2nd link was a great topic since it contained everything I needed to do the conversion back and forth.