Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Fixing Roundoff Error</title> </head> <body> <script> let x = (0.1 * 10 + 0.2 * 10) / 10; document.write(x) // 0.3 </script> </body> </html>