o(╥﹏╥)oSad

WeChat cannot downloadfloating point hexadecimal converter, but just click on the upper right corner and select open in browser or Safari!
floating point hexadecimal converter

floating point hexadecimal converter

Recommended for you: floating point hexadecimal converter

Floating point to hexadecimal converter (convert floating point numbers to hexadecimal) is a small tool for display and conversion of floating point numbers. Provides floating point number conversion function, both single precision and double precision are supported! It can display floating-point numbers in single-precision 32-bit and double-precision 64-bit hexadecimal values ​​stored in the memory, and can also force the corresponding hexadecimal values ​​into floating-point numbers.

Instructions for using the hexadecimal converter:

Computer students and software reverse engineering enthusiasts all know that floating point numbers are stored in hexadecimal format inside the computer. It adopts the IEEE binary floating-point arithmetic standard (IEEE 754), which is used by many CPUs and floating-point operators. However, the calculator currently provided with the system does not have this function, so I wrote this small tool. In addition, the function of converting decimal to hexadecimal is included.

How to represent floating point numbers in hexadecimal

In binary files, the format of stored data is hexadecimal.

The following is an example of how 27.0f is represented in a binary file.

Float has a total of 32 bits, which is equivalent to 4 bytes. From the highest to the lowest bits, they are the 31st, 30th, 29th,..., 0 bit. The 31st bit is the sign bit. 1 means that the number is negative, and 0 is the opposite. Bits 30-23, a total of 8 bits are exponent bits. Bits 22-0, a total of 23 bits are the mantissa bits. Every 8 people are divided into 4 groups, namely Group A, Group B, Group C and Group D. Each group is a byte, stored in reverse order in memory, that is: DCBA

27.0 expressed in binary is: 11011.0

Use scientific notation to express it as 1.110110*2^4. Now the mantissa and exponent we want are available.

The mantissa is: 1101 10 (delete the first 1 in front, because using scientific notation, the first one in binary is always 1, the computer does not store this 1 when storing, only the number of digits after the decimal point) If there are less than 23 digits, add 0, which is 1011 0000 0000 0000 0000 000 (23 digits)

Index: 4. A total of 8 bits, which can represent unsigned integers ranging from 0 to 255, or signed integers ranging from -128 to 127. But because the exponent can be negative, in order to unify the decimal integer into binary, 127 is added first.

So: 4+127=131 becomes 10000011 in binary

The binary representation of 27.0 is:

Add the sign bit 0 at bit 31

That is 0100 0001 1101 1000 0000 0000 0000 0000

The hexadecimal value is: 41 D8 00 00

​ ​ ​Look at another number 27.5, which is 11011.1 in binary

1.10111*2^4

The mantissa (the number after the decimal point) is 10111, with 23 digits added: 1011 1000 0000 0000 0000 000

Exponent: 4, plus 127, it is 131, binary 1000 0011

The binary representation is (1 sign digit) 0 (8 exponent digits) 1000 0011 (23 mantissa digits) 1011 1000 0000 0000 0000 000

Written in binary standard form: 0100 0001 1101 1100 0000 0000 0000 0000

Written in hexadecimal, it is 41 DC 00 00

Version: 0.98 | Update time: 2024-11-01

Similar recommendations

Latest updates

Floating Point Hex Converter Review

  • 1st floor Huajun netizen 2018-06-26 04:31:52
    The interface design of Floating Point Hexadecimal Converter is easy to use and has rich functions. I highly recommend it!
  • 2nd floor Huajun netizen 2021-06-20 17:06:15
    The floating point to hexadecimal converter software is very easy to use, the download speed is very fast, and it is very convenient!
  • 3rd floor Huajun netizen 2020-05-04 10:50:42
    The floating point hexadecimal converter feels good overall and I am quite satisfied with it. The installation and operation are very smooth! Followed the installation step-by-step instructions and it went very smoothly!

Recommended products

Everyonealso likeThese:

+

This application has not passed real-name authentication. You can download it through the mobile assistant.

CancelOK