Re: how do arithmetic operations with floating point no in shell script

From: karthikeyan (thegreatkarthik_at_yahoo.co.in)
Date: 07/17/04

  • Next message: Sajid Azami: "Configure Sympatico on Suse 9.1 Personal"
    Date: 17 Jul 2004 05:05:46 -0700
    
    

    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 <moma@example.net> wrote in message news:<apQJc.3735$v04.53421@news2.e.nsc.no>...
    > 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


  • Next message: Sajid Azami: "Configure Sympatico on Suse 9.1 Personal"

    Relevant Pages