Answers for "javascript double value"

9

javascript decimal to string

<script language="JavaScript" type="text/javascript"> 
var a = 3.3445;
var c = a.toString();
alert(c);
</script>
Posted by: Guest on March-02-2020
-1

double javascript

<!DOCTYPE html>
<html>
<body>

<h2>JavaScript Numbers</h2>

<p>Numbers can be written with or without decimals:</p>

<p id="demo"></p>

<script>
var x = 3.14;
var y = 3;
document.getElementById("demo").innerHTML = x + "<br>" + y;
</script>

</body>
</html>
Posted by: Guest on March-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language