diff --git a/index.js b/index.js index 3a1e8bc..3bb533b 100644 --- a/index.js +++ b/index.js @@ -187,7 +187,7 @@ module.exports.prototype.parseStringVal = function parseStringVal(string) { } else if (this.string.toBoolean && string.toLowerCase() === 'false') { return false; } else if (this.string.toNumber && !isNaN(parseInt(string, 10)) && - (+string - +string + 1) >= 0) { + ((+string - +string) + 1) >= 0) { return parseFloat(string, 10); }