Html input tags always return text, not numbers, even its content can be coerced to numerical format, dates, etc...
So next you should convert that input to actual number format:
parseInt(myNum); // If you expect an integer.
parseFloat(myNum); // If you expect floating point number.