![]() |
|
|
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 |
| comparing values of same variable | coolkid | Shell Programming and Scripting | 2 | 05-27-2008 06:45 PM |
| Dividing float values | shash | UNIX for Dummies Questions & Answers | 3 | 01-17-2007 05:37 AM |
| Problem cutting & comparing values | wilsontan | Shell Programming and Scripting | 6 | 02-09-2006 11:48 AM |
| comparing two decimal values in KSH | nandinisagar | Shell Programming and Scripting | 4 | 11-15-2005 06:36 PM |
| comparing float with int / number | lelliott | Shell Programming and Scripting | 2 | 05-19-2005 10:25 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I am trying to compare 2 float values using if
the foll code does not work a=1.4 b=1.6 if test $a -gt $b then echo "$a is max" else echo "$b is max" fi does -gt work for floating point numbers, if not how do go about for my requirement? can i use bc ? pls help thanks in advance kavitha |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|