如何用脚本实现数字的四舍五入
怎么编写数字的四舍五入啊?比如:
0.22222=0.222
0.22299=0.223
请求大家的帮助
谢谢 Think you very much.
Now I have a better method to get it.
#printf $.3f 0.222999
#printf $.3f 0.222333
The above two commands work well. And thank you for your answer.
页:
[1]