Add tests with 100,1000...
Solutions with ceil are wrong.
function out = HowManyDigits(in)
out = floor(log10(in))+1;
end
Select every other element of a vector
20827 Solvers
200 Solvers
312 Solvers
538 Solvers
Count decimal digits of a number
181 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!