可以使用round函数 ,这函数原本功能是四舍五入 比如: >> A = 0.0326465;>> B = round(A*1000)/1000 B = 0.0330 转载于:https://www.cnblogs.com/LJWJL/p/5109849.html