Cody

Problem 2867. Matlab Basics - Rounding III

Solution 2953600

Submitted on 16 Sep 2020 by 怡君 姚
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))

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