WiiRd forum

USB Gecko Related => USB Gecko Dev => Topic started by: [email protected] on February 08, 2013, 06:20:09 PM



Title: Wii Floating Point Calculator
Post by: [email protected] on February 08, 2013, 06:20:09 PM
Who thinks this is a good idea?
http://www.youtube.com/watch?v=rIIc3k5JyuU

I thought about what could be useful and noticed the float calculations can not be done with any program I know of.
Gecko.Net: nope, some guy´s program: nope, windows calculator: nope, Geckocodes tools: nope, other web tools: nope!


Title: Re: Wii Floating Point Calculator
Post by: megazig on February 10, 2013, 07:20:54 AM
python

>>> import struct
>>> print "%08x" % struct.unpack('>I', struct.pack('>f', 1.0))
3f800000


Title: Re: Wii Floating Point Calculator
Post by: [email protected] on February 10, 2013, 09:16:55 AM
Can it be that short in Java also?


Title: Re: Wii Floating Point Calculator
Post by: megazig on February 10, 2013, 10:35:04 AM
I don't do Java, but it's very short in C

anyone is free to use codepad and this code to do calculations

http://codepad.org/nUJyk6fH


Title: Re: Wii Floating Point Calculator
Post by: [email protected] on February 11, 2013, 09:35:28 AM
I don´t think that anyone who is in need of converting these knows or wants to know what to do with the code.
Better directly making the program with graphical user interface.