I have the following number 704.425
that need to round to 704.43
. Is I use .toFixed(2)
I get 704.42
instead.
console.log(704.425.toFixed(2)) // 704.42
How could I get 704.43
instead 704.42
?
I have the following number 704.425
that need to round to 704.43
. Is I use .toFixed(2)
I get 704.42
instead.
console.log(704.425.toFixed(2)) // 704.42
How could I get 704.43
instead 704.42
?