We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 899d0cf commit d739b0bCopy full SHA for d739b0b
33.html
@@ -0,0 +1,20 @@
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+ <head>
4
+ <title>JS Tutorials 204</title>
5
+ <meta charset="UTF-8">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+ </head>
9
+ <body>
10
+ <h1>JavaScript Numbers</h1>
11
+ <h2>Floating Point Precision</h2>
12
+ <p>Floating point arithmetic is not always 100% accurate.</p>
13
+ <p id="target"></p>
14
+ </body>
15
+ <script>
16
+ let x = 0.2 + 0.1
17
+
18
+ document.getElementById("target").innerHTML = "0.2 + 0.1 = " + x;
19
+ </script>
20
+</html>
0 commit comments