Re: script & bc

2004-10-10 Thread Nick Rout
On Sun, 10 Oct 2004 14:01:00 +1300 Matthew Gregan <[EMAIL PROTECTED]> wrote: > At 2004-10-10T13:48:06+1300, Nick Rout wrote: > > is this a bug or something I am not grokking? > > The manual clearly states how the scale interacts with the operators. so it does if you read all of it :) after rea

Re: script & bc

2004-10-09 Thread Matthew Gregan
At 2004-10-10T13:48:06+1300, Nick Rout wrote: > is this a bug or something I am not grokking? The manual clearly states how the scale interacts with the operators. -mjg -- Matthew Gregan |/ /|[EMAIL PROTECTED]

Re: script & bc

2004-10-09 Thread Christopher Sawtell
On Sun, 10 Oct 2004 13:48, Nick Rout wrote: > On Sun, 2004-10-10 at 13:21, Christopher Sawtell wrote: > > On Sun, 10 Oct 2004 12:59, Ross Drummond wrote: > > > I am in the middle of some script wrangling. > > > > > > I am having difficulty making bc work how I want. > > > > > > [EMAIL PROTECTED] us

Re: script & bc

2004-10-09 Thread Nick Rout
On Sun, 2004-10-10 at 13:21, Christopher Sawtell wrote: > On Sun, 10 Oct 2004 12:59, Ross Drummond wrote: > > I am in the middle of some script wrangling. > > > > I am having difficulty making bc work how I want. > > > > [EMAIL PROTECTED] user]$ echo "scale=0; 2*2.3" |bc > > > > returns 4.6. I want

Re: script & bc

2004-10-09 Thread Christopher Sawtell
On Sun, 10 Oct 2004 12:59, Ross Drummond wrote: > I am in the middle of some script wrangling. > > I am having difficulty making bc work how I want. > > [EMAIL PROTECTED] user]$ echo "scale=0; 2*2.3" |bc > > returns 4.6. I want it to return an integer. > > How do I make bc do this? echo "scale=0; (

script & bc

2004-10-09 Thread Ross Drummond
I am in the middle of some script wrangling. I am having difficulty making bc work how I want. [EMAIL PROTECTED] user]$ echo "scale=0; 2*2.3" |bc returns 4.6. I want it to return an integer. How do I make bc do this? Cheers Ross Drummond