0

console.log(Number.parseFloat('123456789021.123457'));

Output: 123456789021.12346

Expected output: 123456789021.123457

Why does the Number.parseFloat function automatically round the last digit?

connexo
  • 49,059
  • 13
  • 74
  • 108
Ajay Ullal
  • 356
  • 2
  • 9

0 Answers0