Re: bc - calculator
Or you could just use:
'bc -l' on invocation to get bc to treat numbers as 'longs'
> From: Christoph Simon <email@example.com>
> To: firstname.lastname@example.org
> Cc: email@example.com
> Subject: Re: bc - calculator
> Message-Id: <[🔎] firstname.lastname@example.org>
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 7bit
> On Fri, 17 Nov 2000 13:39:21 +0100
> Joerg Johannes <email@example.com> 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