const number = 100
number.toFixed(2) -> "100.00"
parseFloat(number.toFixed(2)) -> 100
I am not getting expected result as 100.00 as double type if input is 100.36 getting expected result
Framework - loopback4
Is that solution what you are looking for?
const number = 100.3611
let newNumber = parseFloat(number).toFixed(2)
console.log(newNumber)