Search This Blog

Monday, 1 August 2016

What is the smallest possible number in Javascript?

Html page:

<button onclick="myFunction()">Try it</button>
<p id="P1"></p>

Javascript page:

<script>
    function myFunction() {
        document.getElementById("demo").innerHTML = Number.MIN_VALUE;
    }
</script>

Output:

5e-324

No comments:

Post a Comment