Search notes:

JavaScript: division operator (/)

<!DOCTYPE html>
<html>
<head>
  <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
  <title>Javascript division operator (/)</title>

  <script type="text/javascript" src="../js-tablator/tablator.js"></script>

  <script type="text/javascript">

    function write_out(txt) {
      document.getElementById('out').innerHTML += txt + '<br>';
    }
    function main() {

      write_out('10 / 3 = ' + (10/3)); // 3.3333333333333335
      write_out('11 / 3 = ' + (11/3)); // 3.6666666666666665
      write_out('12 / 3 = ' + (12/3)); // 4

    }
  </script>

</head>
<body onload='main()';>

    <div id='out'></div>

</body>
</html>
Github repository about-javascript, path: /operators/division.html

See also

Operators

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759414055, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/JavaScript/operators/division(66): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78