Cody

Solution 2649107

Submitted on 3 Jul 2020
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   Fail
x = 12358466243; y_correct = 12358470000; assert(isequal(round_ten_thou(x),y_correct))

Undefined function 'roundn' for input arguments of type 'double'. Error in round_ten_thou (line 2) y = roundn(x,4); Error in Test1 (line 3) assert(isequal(round_ten_thou(x),y_correct))

2   Fail
x = 12358466243.325; y_correct = 12358470000.000; assert(isequal(round_ten_thou(x),y_correct))

Undefined function 'roundn' for input arguments of type 'double'. Error in round_ten_thou (line 2) y = roundn(x,4); Error in Test2 (line 3) assert(isequal(round_ten_thou(x),y_correct))