Re: question about floating point calcuation with shell script / bc

2007-11-12 Thread Patrick Dung
Hello Peter Thanks, it work. Regards Patrick --- Peter Boosten <[EMAIL PROTECTED]> wrote: > On Mon, November 12, 2007 14:01, Patrick Dung wrote: > > Hi > > > > > > I have a file with numbers in each line. > > Each number is a decimal number. > > My task is to add them up and get the final answe

Re: question about floating point calcuation with shell script / bc

2007-11-12 Thread Peter Boosten
On Mon, November 12, 2007 14:01, Patrick Dung wrote: > Hi > > > I have a file with numbers in each line. > Each number is a decimal number. > My task is to add them up and get the final answer. > > > I have searched with the search engine. > I found bash cannot handle floating point calculation. >

question about floating point calcuation with shell script / bc

2007-11-12 Thread Patrick Dung
Hi I have a file with numbers in each line. Each number is a decimal number. My task is to add them up and get the final answer. I have searched with the search engine. I found bash cannot handle floating point calculation. I tried to use 'bc' and found if the final answer is < 1 (eg. 0.2) It di