Subj : Re: how do arithmetic operations with floating point no in shell script To : comp.os.linux.admin,comp.os.linux.misc,comp.os.linux.redhat,comp.os.linux.setup,comp.os.linux From : thegreatkarthik Date : Sat Jul 17 2004 06:05 am sir, Thks a lot for your valuable help. Is there any possible option to go for floating point calculation in "expr" help me Thks in adv again moma wrote in message news:... > karthikeyan wrote: > > sir, > > how do arithmetic operations with floating point number shell script program > > expr only provide solution for whole numbers > > I want to add floating no > > moreover even the ulility like "bc" - calculator adds only whole numbers > > Is there any utility to operate on floating point no > > bc should understand decimal numbers > $ echo "1.2 - 3.4 " | bc > -2.3 > > > > Help me > > thks in adv > > You may browse to > http://www.futuredesktop.org/RedHat9-apt-get.html > and search for "Math" on that page. > > > // moma > http://www.futuredesktop.org :: The most relevant links at the top .