<html> <body> <button onclick="var myNum = new Number(100.22); alert(myNum.toFixed(1));"> Number toFixed </button> </body> </html>