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

Re: floating point hex calc?



On Fri, Mar 07, 2003 at 08:53:02 -0600, Kirk Strauser wrote:
> At 2003-03-07T09:48:56Z, "Michael D. Crawford"
> <crawford@goingware.com> writes:
> 
> > Is there something like what I want for debian, or if not is there
> > something I can compile from source?
> 
> `bc' comes with Debian. Start it with the -l flag (to do float
> math), set ibase to 16, and enter A-F in caps. The ">" and ":" show
> what I typed and what bc displayed, respectively.
> 
>     $ bc -l
>     > ibase=16
>     > A+B
>     : 21
>     > 1A.C9E
>     : 26.788

But how about output in hexadecimal?

    $ bc -l
    > ibase=16
    > obase=16
    > 1.23456
    :  01.03 00 14 21

What does this means???

-- 
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: