Problem 1510. Number of digits in an integer
Specifies how many digits in a given integer. Example: in=100 ==> out=3
Solution Stats
Problem Comments
-
2 Comments
Jean-Marie Sainthillier
on 16 Sep 2014
Add tests with 100,1000...
Solutions with ceil are wrong.
Dyuman Joshi
on 9 Jul 2022
Test suite has been modified to include negative integers as well.
Solution Comments
Show commentsProblem Recent Solvers159
Suggested Problems
-
448 Solvers
-
Check if number exists in vector
11677 Solvers
-
412 Solvers
-
Matlab Basics - Convert a row vector to a column vector
628 Solvers
-
Replace every 3rd element in a vector with 4
249 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!