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

Re: floating point hex calc?



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

-- 
Kirk Strauser
In Googlis non est, ergo non est.

Attachment: pgpN6Anwo5Jth.pgp
Description: PGP signature


Reply to: