![]() |
|
|
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 Decimal Numbers | Grizzly | Shell Programming and Scripting | 3 | 10-05-2009 04:17 AM |
| Insert a decimal point | lyoncc | Shell Programming and Scripting | 4 | 06-04-2007 06:40 PM |
| how to get rid of decimal point? | cin2000 | Shell Programming and Scripting | 2 | 12-27-2005 12:26 PM |
| How To Make Decimal Point Fall On The 15th Character On The Screen | Vozx | Shell Programming and Scripting | 3 | 12-08-2005 04:17 PM |
| comparing two decimal values in KSH | nandinisagar | Shell Programming and Scripting | 4 | 11-15-2005 06:36 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
On Solaris you can also use ksh93 (you may have it under /usr/dt/bin/dtksh), zsh or expr. Code:
% zsh -c '((1.20 > 1.3)) && print ok || print ko' ko or: Code:
$ bash -c '(( $(expr 1.20 \> 1.3) == 1 )) && echo ok || echo ko' ko Code:
bash -c 'case $(expr 1.20 \> 1.3) in (1) echo ok;; (*) echo ko;; esac' ko |
|
|||||
|
Quote:
|
|
|||||
|
Quote:
Quote:
Thanks again! |
![]() |
| Bookmarks |
| Tags |
| comparison, float |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|