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

Re: bc - calculator



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
---
^X^C
q
quit
:q
^C
end
x
exit
ZZ
^D
?
help
shit
.



Reply to: