The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 04-22-2009
colemar colemar is offline
Registered User
  
 

Join Date: Apr 2009
Location: Trento, Italy
Posts: 116
Quote:
Originally Posted by kodak View Post
bash does not do floating point math by itself
But apparently ksh does:
Code:
colemar@deb:~$ echo $((1.0/7))
bash: 1.0/7: syntax error: invalid arithmetic operator (error token is ".0/7")
colemar@deb:~$ ksh
$ echo $((1.0/7))
0.142857142857142857