Declare float point number, boolean value and null value : Number « Data Type « JavaScript DHTML






Declare float point number, boolean value and null value

   

<HTML>
<BODY>
<SCRIPT language="JavaScript">
<!--
    var c=2.59;
    var i=false;
    var n=null;
    document.write("\"This is fun!\"");
//-->
</SCRIPT>
</BODY>
</HTML>

   
    
    
  








Related examples in the same category

1.Convert a number to a precision
2.Fix a number
3.Convert a Number to a Exponential format
4.Convert a number to string by append empty string to it
5.Compare the value for integer numbers
6.Integer math calculation
7.Calculate the average for integers
8.Convert from Celsius to Fahrenheit
9.Convert Fahrenheit to Celsius
10.Calculate circle area/Peri/Calculate sphere volume
11.Hexadecimal Numbers
12.Check if it is a number and calculate the cubic power
13.Read a number and compare its value
14.Add different type variables together
15.Using Binary Flags