[root@yjb ~]# more test.sh #!/bin/sh str1="2.1589872102e+06" echo $str1| awk '{printf("%d ",$0+0.5)}' #cacti流量(M)数字转换成科学计数 M=A*1000*1000/8