PDA

查看完整版本 : Round, With Ties to Even - Cleve Moler on Mathematics and Computing


poster
2021-04-24, 17:42
http://blogs.mathworks.com/cleve/files/rounds.png
We are considering a MATLAB Enhancement Request to support options for round(x) when x is exactly halfway between two integers.

ContentsClassic round (https://www.labfans.com/bbs/admincp/#efc77c0b-cbb6-4621-9b3f-270c71e48100)roundoff (https://www.labfans.com/bbs/admincp/#ae32c2af-7926-4bef-a2e7-afce1a265657)flints (https://www.labfans.com/bbs/admincp/#2733a2a7-1371-46f5-b406-c5e6ab9050b6)round (https://www.labfans.com/bbs/admincp/#b656360e-a4a6-46c9-b93e-1c8e53c62299)test round (https://www.labfans.com/bbs/admincp/#348cbbe7-0ffc-4bd3-ad65-5b3f1dc63634)cities (https://www.labfans.com/bbs/admincp/#8dcf7272-41cb-48e9-908d-0ddb470262fc)IEEE 754 (https://www.labfans.com/bbs/admincp/#156306c1-1c95-4844-9d56-13a855821010)Which? (https://www.labfans.com/bbs/admincp/#d3dcbc9e-83a3-4d9a-9381-1ddca306b0b3)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 >> (https://blogs.mathworks.com/cleve/?p=6740)

http://feeds.feedburner.com/~r/mathworks/moler/~4/p2Fn0RJeZco

More... (http://feedproxy.google.com/~r/mathworks/moler/~3/p2Fn0RJeZco/)