valueAsNumber

The valueAsNumber property of the HTMLInputElement interface represents the current value of the input element as a number or NaN if converting to a numeric value is not possible.

MDN Reference