CodePudding user response:
Recommended fixed-point decimal, took the decimal fraction into without decimal,CodePudding user response:
Can you give a code?CodePudding user response:
Use the IntToHex ()CodePudding user response:
Fixed point into an integer, reoccupy IntToHex () this function is wonderful,I don't have the code, in fact, if you don't worry about the people, in the computer storage is binary, as for decimal, octal, or binary, or one hundred into the system, is to see,
CodePudding user response:
121.86 this into hexadecimal results should be how?CodePudding user response:
The need to separate the integer part and decimal part, 121 convert hexadecimal integer part is 0 x79, decimal division 0.86 convert hexadecimal is 0. DC28F, and then combined in a can