You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
The round2even function performs round to even, which is different from round to larger. The return value is the number closest to the value of expression, with the appropriate number of decimal places. If expression is exactly halfway between two possible rounded values, the function returns the possible rounded value whose rightmost digit is an even number. (In a round to larger function, a number that is halfway between two possible rounded values is always rounded to the larger number.)
Note: Round to even is a statistically more accurate rounding algorithm than round to larger.
Note: Round to even is sometimes called banker's rounding.
Cite As
Chris Larson (2026). round2even (https://www.mathworks.com/matlabcentral/fileexchange/6752-round2even), MATLAB Central File Exchange. Retrieved .
Categories
Find more on Get Started with Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers
General Information
- Version 1.0.0.0 (984 Bytes)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
