Codes
WiiRd forum
December 01, 2021, 01:35:34 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome on the new server

Update 4.3 - do NOT update!
Gecko 1.9.3.1
Should I get a USB Gecko, I wanna hack?
How do I use my USB Gecko
Where can I get WiiRd?
 
   Home   CODE DATABASE GAMEHACKING Help Search Login Register  
Pages: [1]
  Print  
Author Topic: IEEE-754 Single Precision Calculator  (Read 11373 times)
mdmwii
an mdm for everything
Hacker
Jr. Member
*****

Karma: 13
Posts: 78


is MoonJumping in real life...


« on: September 10, 2009, 02:57:55 PM »

An accurate conversion could be obtained from this site: http://babbage.cs.qc.edu/IEEE-754/

But I created an application to easily convert IEEE hex to decimal and viceversa: http://www.mediafire.com/?ubwdtawzyzk

I hope it could be useful.

« Last Edit: September 10, 2009, 03:01:23 PM by mdmwii » Logged

Panda On Smack
Hacker
Hero Member
*****

Karma: 39
Posts: 606


« Reply #1 on: September 10, 2009, 11:05:22 PM »

Thanks dude
Logged
dcx2
Computer Engineer
Moderator
Legendary Member
*****

Karma: 165
Posts: 3468


WWW
« Reply #2 on: May 02, 2011, 04:35:17 PM »

FYI, the code database also has a single precision converter

http://www.geckocodes.org/index.php?arsenal=3

However, the babbage site can also do double-precision conversions, so it is still a useful link.
Logged

James0x57
Database Admin
Leader
Legendary Member
*****

Karma: 70
Posts: 1546

Gamertag: James0x57


WWW
« Reply #3 on: May 02, 2011, 08:59:56 PM »

@mdmwii: Thanks for the tool!



@dcx2: ..I've never used double precision in hacking codes. Do you think it would be useful for me to add that to GeckoCodes?

The conversion* on the geckocodes page is done with PHP so I can very easily add a switch to handle double-precision. (will probably wait until after the redesign if you want it though)



(*there's no math calculation- it's just doing a different view on the same float data and AJAX'd back to the page**)
(**JavaScript 2.0 can do this on its own- very powerful feature!!)
Logged


dcx2
Computer Engineer
Moderator
Legendary Member
*****

Karma: 165
Posts: 3468


WWW
« Reply #4 on: May 02, 2011, 09:05:08 PM »

This thread is necro'd btw.  Originally Sept 2009.  But I check the "what is currently being read" topics list sometimes, and I noticed someone was reading this topic.

re: double precision, if you've ever seen lfd or stfd, then the game was using double precision.  Most of the time, though, it's just used for converting integers to floats and vice versa.  Single precision only has a (iirc) 24-bit mantissa, so a 32-bit integer won't fit into it properly.  Since double precision has a 48-bit mantissa, you can fit a 32-bit integer into it without losing precision.  That's why doubles are used to convert ints to floats and vice versa.

I don't think any games actually have a need for accuracy that goes beyond single precision.
Logged

James0x57
Database Admin
Leader
Legendary Member
*****

Karma: 70
Posts: 1546

Gamertag: James0x57


WWW
« Reply #5 on: May 02, 2011, 10:04:30 PM »

oh whoops! lol


re: re: double precission, Ah, good to have that confirmation. Thanks!
Logged


Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!