Josh McFarlane
darsant at gmail.com
Tue Mar 21 11:45:22 CST 2006
On 3/21/06, Steve Erbach <erbachs at gmail.com> wrote: > Dear Group, > > There are about a jillion decimal to hex converters on the web. But > what I'm looking for is a converter that will handle decimal numbers > with decimals. That is, convert 1.0625 (decimal) to 1.1 > (hexadecimal). I can write one that recursively takes the remainder > from a division by higher and higher powers of 16 and dividing the > remainder the the next higher power of sixteen, etc. Just wondered if > any of you had seen such a utility. Are you looking for something for integration into a system, or something for personal use? Problem with trying to represent a floating decimal based number in a different system is that you can't always get an exact value for the number you want to represent, so any cnoversion utility would have to have a cutoff point. I've tinkered with a C++ app to do it for me, but it's not anywhere near professional, just a toy. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein