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 use:

Computer science students and enthusiasts who like software reverse engineering 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 example illustrates how 27.0f is represented in a binary file.

float
A total of 32 bits, equivalent to 4 bytes
From the highest to the lowest bits are the 31st, 30th, 29th,...,0th bits respectively
Bit 31 is the sign bit, 1 means the number is negative, 0 means otherwise.
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

Expressed in scientific notation 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: is 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 sign bit 0 at bit 31

That's 0100 0001 1101 1000 0000 0000 0000 0000

Hexadecimal 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: V0.98 Green version | Update time: 2024-11-01

Similar recommendations

Latest updates

Floating Point Hex Converter Review

  • 1st floor Huajun netizen 2018-12-04 13:44:44
    The floating point to hexadecimal converter software is very easy to use, the download speed is very fast, and it is very convenient!
  • 2nd floor Huajun netizen 2022-02-19 00:17:22
    The floating point hexadecimal converter is awesome! 100 million likes! ! !
  • 3rd floor Huajun netizen 2022-02-01 12:48:07
    The floating point to hexadecimal converter is not bad, the download is very fast, I give you a good review!

Recommended products

Everyonealso likeThese:

+

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

CancelOK