![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Round with awk | AnnaLynn | Shell Programming and Scripting | 1 | 05-06-2008 11:55 AM |
| round in KSH | here2learn | Shell Programming and Scripting | 6 | 07-18-2006 09:18 AM |
| how to round a value | kotasateesh | UNIX for Dummies Questions & Answers | 2 | 02-08-2006 01:38 PM |
| Cannot adjust division | jav_v | Filesystems, Disks and Memory | 1 | 08-20-2002 05:50 AM |
| division problem | inquirer | Shell Programming and Scripting | 3 | 04-02-2002 07:03 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Round with division command
Hi I want to create a list of percentages but the shell script is bugging me.
If if I want to resolve the percentage of the quota used I get 0 because the schell script rounds by default. Example Code:
w1=860 w2=1024 w3=$((($w1/$w2)*100)) Echo $w3 gives 0 Can somebody help me? |
| Forum Sponsor | ||
|
|
| Tags |
| linux |
| Thread Tools | |
| Display Modes | |
|
|