Cody

Solution 1523107

Submitted on 8 May 2018 by William
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))

n1 = '12.3456' n3 = '12.345600' n3 = '12.3456'

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

n1 = '12.3456' n3 = '12.345679' n3 = '12.3456'

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

n1 = '12.3456' n3 = '12.345000' n3 = '12.3450'

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

n1 = '12.3457' n3 = '12.345600' n3 = '12.3456'

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

n1 = '12000000' n3 = '12000000.000000' n3 = '12000000'

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

n1 = '54' n3 = '100.000000' n3 = '10'