Cody

Solution 429254

Submitted on 9 Apr 2014 by J.R.! Menzinger
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
%% assert(isequal(repeatingdec(1),'0'))

2   Pass
%% assert(isequal(repeatingdec(3/7),'428571'))

ans = 6

3   Pass
%% assert(isequal(repeatingdec(.3456345612323),''))

ans = 794

4   Pass
%% assert(isequal(repeatingdec(1/pi),''))

ans = 752

5   Pass
%% assert(isequal(repeatingdec(1/13),'076923'))

ans = 6

6   Pass
%% assert(isequal(repeatingdec(2/33),'06'))

ans = 2

7   Pass
%% assert(isequal(repeatingdec(.789789789789789789),'789'))

ans = 3

8   Pass
%% assert(isequal(repeatingdec(.78978978938383838),''))

ans = 178

9   Pass
%% assert(isequal(repeatingdec(1/exp(1)),''))

ans = 519

10   Pass
%% assert(isequal(repeatingdec(.78787878787833333),''))

ans = 944

11   Pass
%% assert(isequal(repeatingdec(.123451234512345),'12345'))

ans = 5

12   Pass
%% assert(isequal(repeatingdec(1/100),''))

13   Pass
%% assert(isequal(repeatingdec(1/62),''))

ans = 15

14   Pass
%% assert(isequal(repeatingdec(1/16),''))

ans = 2

15   Pass
%% assert(isequal(repeatingdec(1/91),'010989'))

ans = 6

16   Pass
%% assert(isequal(repeatingdec(0),'0'))

Suggested Problems

More from this Author7