Cody

Solution 51483

Submitted on 25 Feb 2012
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
%% assert(numCmp('12.3456',12.3456))

2   Pass
%% assert(numCmp('12.3456',12.3456789))

3   Pass
%% assert(~numCmp('12.3456',12.345))

4   Fail
%% assert(~numCmp('12.34567890',12.3456))

Error: Index exceeds matrix dimensions.

5   Fail
%% assert(numCmp('12e6',12e6))

Error: Assertion failed.

6   Pass
%% assert(~numCmp('54',100))