摘要: mod函数采用floor,rem函数采用fix函数。那么什么是floor和fix? fix(x):截尾取整。如: >> fix([3.4 , -3.4]) ans = 3 -3 floor(x):高斯取整(不超过x的最大整数)。如: >> floor([3.4 , -3.4]) ans = 3 -4 阅读全文
posted @ 2016-06-29 21:56 Steve_Nash 阅读(9025) 评论(1) 推荐(0) 编辑