Round to Specified Digits Place

Rounds to the specified digits place and supports five different styles of rounding the last digit, real and complex numbers, and units.

Download
Download

You are now following this Submission

Cite As

Edward Zechmann (2026). Round to Specified Digits Place (https://uk.mathworks.com/matlabcentral/fileexchange/21121-round-to-specified-digits-place), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: round2, ROUND2

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0

Fixed a bug with outputting the A2 when there is only one output variable.

Download
1.0.0-1

Added options for units and a three digit separator character.

Download
1.0.0-0

Download