Round to a Specified Number of Significant Digits
Updated 26 Mar 2022
Edward Zechmann (2023). Round to a Specified Number of Significant Digits (https://www.mathworks.com/matlabcentral/fileexchange/21225-round-to-a-specified-number-of-significant-digits), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: round2, FIX2, ROUND2
Inspired: Round with significant digits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Fixed a bug in the output of real number strings with SI Prefixes
Fixed a bug with outputting the A2 when there is only one output variable.
Added options for units and a three digit separator character.