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
  • 53,704
  • 14
  • 91
  • 128
Ajay Ullal
  • 378
  • 2
  • 10

0 Answers0