cacti中科学计数的读出和转换

 

 

[root@yjb ~]# more test.sh 
#!/bin/sh
str1="2.1589872102e+06"
echo $str1| awk '{printf("%d\n",$0+0.5)}'

#cacti流量(M)数字转换成科学计数
M=A*1000*1000/8

 

posted @ 2019-08-17 12:07  邓聪聪  阅读(231)  评论(0编辑  收藏  举报