Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Adding Floating Point Numbers</title> </head> <body> <script> var x = 0.1 + 0.2; document.write(x) // 0.30000000000000004 </script> </body> </html>