Cody

Solution 1822954

Submitted on 22 May 2019 by Olivia Li
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
x = 12358466243; y_correct = 12358470000; assert(isequal(round_ten_thou(x),y_correct))

y = '12358476243' y = '12358470243' y = '12358470043' y = '12358470003' y = '12358470000'

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

y = '12358476243.325' y = '12358470243.325' y = '12358470043.325' y = '12358470003.325' y = '12358470000.325' y = '12358470000.025' y = '12358470000.005' y = '12358470000.000'