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

Re: bc - calculator



Or you could just use:

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

HTH
-Daniel

> From: Christoph Simon <ciccio@prestonet.com.br>
> To: j-j@gmx.de
> Cc: debian-user@lists.debian.org
> Subject: Re: bc - calculator
> Message-Id: <[🔎] 20001117105104.4ac8f788.ciccio@prestonet.com.br>
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 7bit
> 
> On Fri, 17 Nov 2000 13:39:21 +0100
> Joerg Johannes <liste_joerg@gmx.de> 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
> ciccio@prestonet.com.br










Reply to: