Why did round not work for you?
rounding the floating points
2 次查看(过去 30 天)
显示 更早的评论
Columns 1 through 8
-3.8881 -3.8854 -3.8776 -3.8645 -3.8462 -3.8228 -3.7944 -3.7610
How can I round this floating point to the nearest integer. I have tried using ceil, nearest, round, floor and fix. are there any other command for this?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Precision 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!