4
<!DOCTYPE html>
<html>
<body>
<script>
var a=3.14+1.00;
document.write(a + "<br>");
</script>
</body>
</html>

output: 4.140000000000001

Every time when something adds to 3.14 either it is 1 , 2 , or 1.00 it gives more decimal value ending with "1".

shubh jaiswal
  • 437
  • 1
  • 6
  • 18

0 Answers0