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 > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-13-2004
Nicol Nicol is offline
Registered User
  
 

Join Date: Sep 2003
Location: Paris
Posts: 128
bc calculate problem

Hi ,

this is the first time i use bc to calculate and i would have decimal result , i use the following :

toto=400;scale=1 echo $toto / 1000|bc

scale to adjust the numbers after the command would have in this case 0.4 as result and i wonder why i have always 0 as result.

Somebody can help ?

thanks

Christian