Floating Point Converter Vega bl the_admin Posts: 4,078 Threads: 863 Joined: Feb 2018 Reputation: 94 06-03-2018, 11:50 PM (This post was last modified: 06-03-2018, 11:53 PM by Vega.) Here's the page I use to help with value conversions when dealing with Floating Points https://www.h-schmidt.net/FloatConverter/IEEE754.html Find the box that says - Hexadecimal Representation. It will have a value of 0x00000000 If you enter in 0x3F800000, you will see the top field labeled - Decimal change from 0 to 1. So let's say you are editing a floating point code that deals with speed and the default speed value is 100kmh. If you want double the speed, enter in 2 for the Decimal value at the top. You will see the bottom result change to 0x40000000. Therefore your floating point value to enter in for the code would be 40000000 to get 200kmh speed. Wiimm Coder / Dev Posts: 26 Threads: 3 Joined: Mar 2021 Reputation: 7 04-25-2021, 07:15 AM All tools of Wiimms SZS Tools support a float converter. Example: Code:```\$ wszst float -- 1 2.5 -3 x40 0x4010 + + 3f80 0000 =            1 : 3ff0 0000 0000 0000 =                      1 : |1| 4020 0000 =          2.5 : 4004 0000 0000 0000 =                    2.5 : |2.5| c040 0000 =           -3 : c008 0000 0000 0000 =                     -3 : |-3| 4000 0000 =            2 : 4000 0000 0000 0000 =                      2 : |x40| 4010 0000 =         2.25 : 4010 0000 0000 0000 =                      4 : |0x4010| 4010 0001 =   2.25000024 : 4010 0000 0000 0001 =    4.00000000000000089 : |+| 4010 0002 =   2.25000048 : 4010 0000 0000 0002 =    4.00000000000000178 : |+|``` Details: https://szs.wiimm.de/cmd/wszst/float « Next Oldest | Next Newest »

Forum Jump:

Users browsing this thread: 1 Guest(s)