shell-script-pt
[Top][All Lists]
Advanced

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

Re: [shell-script] Operações aritméticas não-inteiras


From: Thobias Salazar Trevisan
Subject: Re: [shell-script] Operações aritméticas não-inteiras
Date: Fri, 13 Sep 2002 12:57:21 -0300 (BRT)

         Cassiano,

        Vc pod utilizar o bc

[thobias@neon ~]$ echo "scale=1;3/2" | bc 
1.5
[thobias@neon ~]$ 

        mais detahes: man bc

        []s
Thobias.

On Fri, 13 Sep 2002, Cassiano Sombrio_Hp wrote:

> Date: Fri, 13 Sep 2002 12:37:30 -0300
> X-Mailer: Internet Mail Service (5.5.2655.55)
> From: Cassiano Sombrio_Hp <address@hidden>
> Reply-To: address@hidden
> To: "Lista Shell Script (E-mail)" <address@hidden>
> Subject: [shell-script] Operações aritméticas não-inteiras
> 
> 
>       Olá pessoal,
> 
>       gostaria de saber se é possível realizar operações não-inteiras via
> shell-script, como, por exemplo, dividir 3 por 2 e resultar 1.5 ao invés de
> 1.
> 
>       Obrigado,
>       Cassiano
> 
> 
> 
> ---------------------------------------------------------------------
> Esta lista não admite a abordagem de outras liguagens de programação, como 
> perl, C etc. Quem insistir em não seguir esta regra será moderado sem prévio 
> aviso.
> ---------------------------------------------------------------------
> Sair da lista: address@hidden
> ---------------------------------------------------------------------
> Esta lista é moderada de acordo com o previsto em 
> http://www.listasdiscussao.cjb.net
> ---------------------------------------------------------------------
>  
> 
> Seu uso do Yahoo! Grupos é sujeito às regras descritas em: 
> http://br.yahoo.com/info/utos.html 
> 
> 

-- 
      _
  _  / \                           o
 / \ | |                       o           o             o
 | | | |   _                    o    o                 o       o
 | \_| |  / \                 o                     o    o
  \__  |  | |             o                           o
     | |  | |            ______   ~~~~              _____
     | |__/ |          / ___--\\ ~~~             __/_____\__
     |  ___/          / \--\\  \\   \ ___       <__  x x  __\
     | |             / /\\  \\       ))  \         (  "  )
     | |     -------(---->>(@)--(@)-------\----------< >-----------
     | |   //       | | //__________  /    \    ____)   (___      \\
     | |  //      __|_|  ( --------- )      //// ______ /////\     \\
         //       |    (  \ ______  /      <<<< <>-----<<<<< /      \\
        //       (     )                      / /         \` \__     \\
       //-------------------------------------------------------------\\

Every now and then, when your life gets complicated and the weasels start
closing in, the only cure is to load up on heinous chemicals and then
drive like a bastard from Hollywood to Las Vegas ... with the music at
top volume and at least a pint of ether.
                -- Hunter S. Thompson, "Fear and Loathing in Las Vegas"
----
Thobias Salazar Trevisan <address@hidden>
Home Page - http://www.cos.ufrj.br/~thobias
            http://br.kernelnewbies.org

____________________________
|                          
| Against - HTML Mail      
| Against - MS ATTACHMENTS 
|                          
----------------------------

-------------------------------------------
                   http://thefreeworld.net
Take back the Net! http://www.anti-dmca.org 
-------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]