function checkPercentageNear(pct, val) {
                expect(checkNear(pct.substr(0, pct.length - 1), val));
            }
Checks whether the given percentage string is near the given value.
@param {string} pct The percentage to check. Assumed to be a string ending in "%".
@param {number} val The value to check against. Assumed to be a percentage number, but not ending in "%".