[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: floating point hex calc?



On Fri, Mar 07, 2003 at 04:48:56 -0500, Michael D. Crawford wrote:
> I normally use calctool as a hex calculator, and it's nice when dealing 
> with integers, but I can't type a raw hexadecimal integer into it and find 
> out what its floating point equivalent is.
> 
> Is there something like what I want for debian, or if not is there 
> something I can compile from source?

I don't know if some end-user application exists. Otherwise, perhaps
you can modify an existing application to display the FP numbers in
hexadecimal, as the C standard now allows you to do so (use the %a
format for printf...). You can also write a very simple calculator
from scratch; it shouldn't require much time.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Reply to: