Calculated Value not matching field type Number

Yes, do me a favour and console.log the data type, like so:

console.log("Data type = "+ typeof avg);

assuming that “avg” is now the name without the toFixed