Home
Run >
<DOCTYPE html> <html> <TITLE>Example of Number Object</TITLE> <head> <SCRIPT LANGUAGE="JavaScript"> document.write(Math.round(7.25)); document.write("</br>"); document.write(Math.random()); document.write("</br>"); var no=Math.random()*10 document.write(Math.floor(no)) document.write("</br>"); document.write(Math.max(2,4)) document.write("</br>"); document.write(Math.min(2,4)) document.write("</br>"); document.write(Math.ceil(4.4)); document.write("</br>"); </SCRIPT> </HEAD> <BODY> </BODY> </HTML>