-
1 Comment
Andrew Newell
on 20 Jun 2013
If the number is a true repeater, then multiplying it by 999... for some number of 9's will result in an integer. The difficulty lies in the rounding. I had to tune the tolerance to deal with cases like .123451234512345, which aren't truly repeating.
Suggested Problems
-
3629 Solvers
-
given 3 sides, find area of this triangle
807 Solvers
-
71 Solvers
-
Back to basics 3 - Temp Directory
372 Solvers
-
Split a string into chunks of specified length
1881 Solvers
More from this Author6
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!