this.valueis Stringwhen you get it from an input element. You need to point it to a number before you can use numerical methods on it:
this.value = Number(this.value).toFixed(1);
+ :
this.value (+this.value).toFixed(1);
, parseFloat:
this.value = parseFloat(this.value).toFixed(1);
, parseFloat , Number :
this.value = +'0xF';
this.value = parseFloat('0xF');