I have written a script with a variable, but my test does not pick up decimals.
if [ "$G62" -eq 0.0 ]
then ......
If $G2 is 0.01 the if statement regards it as 0 and the test is not true.
How can I get my if statement to pick up decimals?
Thanks
Gary
if [ "$G62" -eq 0.0 ]
then ......
If $G2 is 0.01 the if statement regards it as 0 and the test is not true.
How can I get my if statement to pick up decimals?
Thanks
Gary
Comment