Hello,
here's my question:
I want to compare two real numbers in a 'if' statement.
e.g : if [ 0.02 -gt 0.03] ; then ...
But it doesn't calculate it as it used to be . It looks like it works fine only with integer numbers.
May somebody know about a solution?
btw: This command doesn't work too, and it quite same:
my_string=`expr 0.02 \* 100 `
thanx
here's my question:
I want to compare two real numbers in a 'if' statement.
e.g : if [ 0.02 -gt 0.03] ; then ...
But it doesn't calculate it as it used to be . It looks like it works fine only with integer numbers.
May somebody know about a solution?
btw: This command doesn't work too, and it quite same:
my_string=`expr 0.02 \* 100 `
thanx