Cody

Solution 1867666

Submitted on 8 Jul 2019
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
a = 100; u = 'MB'; y_correct = 95.4; assert(isequal(convert(a,u),y_correct))

real_size = 95.4000

Assertion failed.

2   Pass
a = 10; u = 'GB'; y_correct = 9.31; assert(isequal(convert(a,u),y_correct))

real_size = 9.3100

3   Pass
a = 500; u = 'GB'; y_correct = 465.5; assert(isequal(convert(a,u),y_correct))

real_size = 465.5000