do this:For example I have two hex numbers
96h and 07h
I have to divide them and display on LCD
the result in hex is 15.6d
the result in decimal is 21.42
I am presently displaying 21.6d on LCD
I have not figured out how to convert that fractional 0.6d into 0.42
If any idea please let me know
Thanks
OK, so you have 96H = 150D and 7H which is still 7D, and you wish to present the results to 2 decimal places. I mentioned you get to choose the units of your numbers. Pick units such that there is no decimal remainder after the division.For example I have two hex numbers
96h and 07h
I have to divide them and display on LCD
the result in decimal is 21.42
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
S | converting devices to 12V | Power Electronics | 3 | |
Downsides to using voltage divider for converting 24 to 5V. | Power Electronics | 7 | ||
L | Help Converting Control Block to C Code | Programming & Languages | 6 | |
J | Converting 24v to 12v | Power Electronics | 8 | |
Converting soldering iron to DC? | Power Electronics | 4 |
by Robert Keim
by Gary Elinoff
by Gary Elinoff
by Luke James