Cody

Solution 1871918

Submitted on 11 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   Pass
assert(numCmp('12.3456',12.3456))

N = 6 n2 = '12.3456'

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

N = 6 n2 = '12.34568'

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

N = 6 n2 = '12.345'

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

N = 10 n2 = '12.3456'

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

N = 3 n2 = '1.2e+07'

Assertion failed.

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

N = 2 n2 = '100'