Precision of numbers : Precision « Number Data Type « JavaScript Tutorial






<html>
<head>
<title>Precision of numbers</title>
<script type="text/javascript" language="javascript">
<!-- //
function Calculate(){
var n = 10.0 / 3.0;
document.write("10.0 divided by 3.0 is " + n);
}
// -->
</script>
</head>
<body onload="Calculate()">

</body>
</html>








5.5.Precision
5.5.1.Precision of numbers