Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not count as significant. No significant digits will result in an answer of 0.
For example:
x = [0.01 0.888 1.0 40.151 39.1244];
y = 4;
The maximum number of significant decimal places from the input is 4 (39.1244).

Solution Stats

21306 Solutions

3384 Solvers

Last Solution submitted on Mar 24, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Group


Problem Recent Solvers3384

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!