Cody

Problem 2867. Matlab Basics - Rounding III

Solution 563582

Submitted on 23 Jan 2015 by Alfonso Nieto-Castanon
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))