mfb said:
You can extend the same concept: Everything in decimal notation:
0.223 = ?*1/16 + ...
Note that dividing by 1/16 is the same as multiplying by 16:
0.223 = ?*1/16 + ...
0.223 * 16 = 3.568
0.223 = 3 * 1/16 + .0355
0.0355 = ? * 1/16^2 + ...
.0355 * 16^2 = 9.088
0.0355 = 9 * 1/16^2 + 0.00034375
0.00034375 = ? * 1/16^3 + ...
0.00034375 * 16^3 = 1.408
0.00034375 = 1 * 1/16^3 + 0.000099609375
0.000099609375 = ? * 1/16^4 + ...
0.000099609375 * 16^4 = 6.528
0.000099609375 = 6 * 1/16^4 + 0.000008056640625
You could pick up 16 bits at a time:
0.223 = ?*1/16^4 + ...
0.223 * 16^4 = 14614.528
14614_10 = 3916_16 (use integer base conversion)
0.223 = 3916_16 / 16^4 + 0.000008056640625
0.000008056640625 = ? * 1/16^8 + ...
0.000008056640625 * 16^8 = 34603.008
34603_10 = 872B_16 (integer base conversion)
0.000008056640625 = 872B_16 * 1/16^8 + 0.00000000000186264514923095703125
0.223 = hex .3916872B ...