How does float value is loaded in 32 bit register | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How does float value is loaded in 32 bit register

4th Jan 2019, 3:08 PM
Ab Rt
3 Answers
+ 1
Registers usually hold memory address, not values
4th Jan 2019, 5:05 PM
Da2
Da2 - avatar
+ 1
Float value say 2.2 , how it is structured in hex?
5th Jan 2019, 5:59 PM
Ab Rt
+ 1
While all values store in the memory is in binary, we programmers usually represent it hexadecimal because its easier to convert from binary to hexa. To convert 11110001 into hexa, we split the bits into groups of four right to left resulting to 1111 0001. Convert each group to hexa resulting to F1. Usually, only assembly and system progrmmers need to be familiar with hexa because they directly access computer memory.
6th Jan 2019, 12:04 AM
Da2
Da2 - avatar