查看单个帖子
旧 2021-04-24, 17:42   #1
poster
高级会员
 
注册日期: 2019-11-21
帖子: 3,006
声望力: 66
poster 正向着好的方向发展
默认 Round, With Ties to Even - Cleve Moler on Mathematics and Computing


We are considering a MATLAB Enhancement Request to support options for round(x) when x is exactly halfway between two integers.

ContentsClassic roundroundoffflintsroundtest roundcitiesIEEE 754Which?Classic roundThe Classic MATLAB calculator was written in Fortran forty years ago, before IEEE 754 and before MathWorks. It had only 71 functions and it was not easy to add more. But one of those functions was ROUND. The help entry had only one sentence.

ROUND ROUND(X) rounds the elements of X to the nearest

...read more >>



More...
poster 当前离线   回复时引用此帖