Cody

Solution 114343

Submitted on 18 Jul 2012 by Noah
  • Size: 10
  • This is the leading solution.
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
%% peta = 40; nano_correct = 7.5; assert(isequal(round(peta_to_nano(peta)*1000)/1000,nano_correct))
ans = 7.5000
2   Pass
%% peta = 250; nano_correct = 1.2; assert(isequal(round(peta_to_nano(peta)*10)/10,nano_correct))
ans = 1.2000