Your test suite is not appropriate!!!!
I fixed the test and added a few tests.
Extract leading non-zero digit
1206 Solvers
289 Solvers
2819 Solvers
412 Solvers
516 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!