document.write("floor(2): " + Math.floor(2) + "
"); document.write("floor(2.0): " + Math.floor(2.0) + "
"); document.write("floor(2.05): " + Math.floor(2.05) + "
"); document.write("floor(2.99): " + Math.floor(2.99) + "
");