bash a desetinna cisla

Robert Vojta vojta na ipex.cz
Čtvrtek Květen 24 20:35:23 CEST 2001


> mam maly dotaz: lze v bashi pocitat s desetinnymi cisly? zatim se mi
> nepodarilo prijit na to jak.

  man bash

...
ARITHMETIC EVALUATION
...
EXPANSION
  ...
  Arithmetic Expansion
  ...
...

       The shell allows arithmetic expressions to  be  evaluated,
       under  certain  circumstances (see the let builtin command
       and Arithmetic Expansion).  Evaluation  is  done  in  long <-
    -> integers  with no check for overflow, though division by 0
       is trapped and flagged as an  error.   The  operators  and
       their  precedence and associativity are the same as in the
       C language.  The following list of  operators  is  grouped
       into levels of equal-precedence operators.  The levels are
       listed in order of decreasing precedence.

  .R.V.

-- 
   _
  |-|  __      Robert Vojta <vojta-at-ipex.cz>          -= Oo.oO =-
  |=| [Ll]     IPEX, s.r.o.
  "^" ====`o
------------- další část ---------------
A non-text attachment was scrubbed...
Name: [žádný popis není k dispozici]
Type: application/pgp-signature
Size: 240 bytes
Desc: [žádný popis není k dispozici]
URL: <http://www.linux.cz/pipermail/linux/attachments/20010524/97690389/attachment.sig>


Další informace o konferenci Linux