matlab取整 四舍五入

Matlab取整函数有: fix, floor, ceil, round.取整函数在编程时有很大用处。 1、取整函数 1.向零取整(截尾取整) fix-向零取整(Round towards zero); >> fix(3.6)   ans =      3 2.向负无穷取整(不超过x 的最大整数-高斯取整) floor-向负无穷取整(Round towards minus infinity); >
相关文章
相关标签/搜索