Or you could just use:

'bc -l' on invocation to get bc to treat numbers as 'longs'

HTH
-Daniel

> From: Christoph Simon <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: debian-user@lists.debian.org
> Subject: Re: bc - calculator
> Message-Id: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 7bit
> 
> On Fri, 17 Nov 2000 13:39:21 +0100
> Joerg Johannes <[EMAIL PROTECTED]> wrote:
> 
> > This was really great and saved me hours of time. The problem is now,
> > that I have to do the same thing with divisions, meaning 3/4 = 0.75. But
> > bc spits out 3/4 => 0 and 4/3 => 1. Any Idea how I can change this
> > behaviour to get the real results? Would save me some more hours...
> 
> I don't use bc but dc. There I have to say
> 5 k
> to get 5 digits of decimal fractions. In bc, syntaxis is different, but
> probably you'll have to do something similar.
> 
> --
> Christoph Simon
> [EMAIL PROTECTED]








Reply via email to