How to Use Floating-Point Values?

A floating-point value literal must have a decimal point and at least one number after the decimal point.

 







    

       var floatNum = 1.2; 

       document.writeln(floatNum);