valueAsNumber

Returns the input field value as a number.

MDN Reference