Add tests with 100,1000...
Solutions with ceil are wrong.
function out = HowManyDigits(in)
out = floor(log10(in))+1;
end
12500 Solvers
Return unique values without sorting
597 Solvers
Check if number exists in vector
4706 Solvers
Generate N equally spaced intervals between -L and L
570 Solvers
178 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!