shell整数和小数,小数和小数之间的计算
#!/bin/bash a=5.01 b=5.1 if [ `expr $a \> $b` -eq 0 ];then echo $b is bigger else echo $a is bigger fi
2023-10-24 15:06:52
shell整数和小数,小数和小数之间的计算
#!/bin/bash a=5.01 b=5.1 if [ `expr $a \> $b` -eq 0 ];then echo $b is bigger else echo $a is bigger fi