Add tests with 100,1000...
Solutions with ceil are wrong.
function out = HowManyDigits(in)
out = floor(log10(in))+1;
end
2268 Solvers
235 Solvers
Make a run-length companion vector
520 Solvers
372 Solvers
319 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!