Matlab round
The function round can be used to clean up after roundoff. When MathWorks began producing the modern versions of MATLAB in 1984, we retained this simple definition for round.
![matlab round matlab round](https://www.mathworks.com/help/examples/images/win64/DrawLinesAroundBrightAndDarkCirclesInImageExample_01.png)
#Matlab round code
The code for ROUND was essentially this one line, which relied on FLOOR. That doesn't say what happens when there is a tie. ROUND ROUND(X) rounds the elements of X to the nearest integers. It had only 71 functions and it was not easy to add more.
![matlab round matlab round](https://media.cheggcdn.com/media%2Fb76%2Fb76e6a31-c184-4f9e-aec2-9ff2af9c42ba%2FphpxsuClU.png)
The Classic MATLAB calculator was written in Fortran forty years ago, before IEEE 754 and before MathWorks.