The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 05-12-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
You can't do floating-point arithmetic in the shell, it only supports integer calculations.

The parentheses in your script are syntax errors, but given the above, taking them out doesn't help much, of course.

This looks suspiciously like something somebody else posted recently. Is this homework for a course? How to store values into variable in perl

Last edited by Neo; 05-12-2008 at 07:14 AM. Reason: edited.... removed sarcasm.
Reply With Quote