I get an error on typescript using Snyk Code Quality:
Performing multiplication on a string (from calling toFixed) and a number (from number literal 10) will trigger an implicit coercion of the operands to number. If this is intended, consider making the coercion explicit.
Here's a sample snippet of my code:
function(numberValue: number) { // this is a number is a parameter that is called
// sample numberValue passed on is 1.23
const roundNumber = Math.floor(Number(numberValue.toFixed(1)) * 10) / 10;
console.log(roundNumber); // if sample numberValue is 1.23 then this displays 1.2
}