You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This expands on the operation of the built-in ROUND function to provide functionality to round to a given number of decimal places. For example,
>> round(pi)
ans =
3
>> round2dp(pi,3)
ans =
3.142
Cite As
Andrew (2026). ROUND2DP (https://www.mathworks.com/matlabcentral/fileexchange/24213-round2dp), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: round2
General Information
- Version 1.0.0.0 (1.14 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
