Cody

Solution 1900934

Submitted on 15 Aug 2019 by Nikolaos Nikolaou
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))

f1 = 12.3456 tf = logical 1

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

f1 = 12.3456 tf = logical 0 tf = logical 1

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

f1 = 12.3456 tf = logical 0

4   Pass
assert(~numCmp('12.34567890',12.3456))

f1 = 12.3457 tf = logical 0

5   Pass
assert(numCmp('12e6',12e6))

f1 = 12000000 tf = logical 1

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

f1 = 54 tf = logical 0