floating point with Shell script

Bill Marcum bmarcum at iglou.com
Mon Feb 13 03:01:23 UTC 2006


On Sun, 12 Feb 2006 19:03:44 +0000, Soo-Hyun Choi 
  <soohyunc at users.sourceforge.net> wrote:
> Hi,
>
> This may be a little bit off-topic.
>
> I would like to do some floating point arithmetic with shell script
> programming as the below.
>
> if [ floating_number_01 = floating_number_02]; then
>    do-some-work
> else
>    do-some-other-work
> fi
>
>
> I know shell script cannot deal the floating point directly. Then, how
> do I deal with the above flow control statement?
>
zsh
perl
awk
bc


-- 
Freshest if eaten before date on carton.





More information about the ubuntu-users mailing list