![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Floating point exception !!! | ssk01 | Linux | 3 | 12-24-2008 02:20 PM |
| Floating point error in C | Hara | High Level Programming | 2 | 06-18-2008 05:43 AM |
| floating point problem | vijlak | High Level Programming | 4 | 03-08-2007 04:18 AM |
| floating point addition | ravi raj kumar | Shell Programming and Scripting | 8 | 12-22-2006 02:47 AM |
| Floating Point Division | gsatch | Shell Programming and Scripting | 1 | 07-25-2002 04:03 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi aju_kup,
Thanks for replying. typeset -i var var=100.500 echo $var When i try your suggestion, it gives me an error which is: check4.sh: line 2: 100.500: syntax error in expression (error token is ".500") here check4.sh is the file which contained your suggested code. I am working on KShell. Please see to it. Thanks ![]() |
|
||||
|
Sure friend,
rowCountEntered=98 totalRowCount=1000 numberOfFilesGenerated=`echo $totalRowCount $rowCountEntered | awk '{print $1/$2}'` echo $numberOfFilesGenerated 10.20 Instead of 10.20, i want the variable numberOfFilesGenerated should return 11. In Anticipation. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|