Remove trailing zeros
Format double numbers to n digits and remove all trailing zeros. Processed with regular expression.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Peter Seibold (2026). Remove trailing zeros (https://in.mathworks.com/matlabcentral/fileexchange/158961-remove-trailing-zeros), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0 (227 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux