Add tests with 100,1000...
Solutions with ceil are wrong.
function out = HowManyDigits(in)
out = floor(log10(in))+1;
end
31161 Solvers
673 Solvers
The Answer to Life, the Universe, and Everything
405 Solvers
494 Solvers
Matlab Basics - Absolute Value
414 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!