UK [fl?:(r)] US [fl?r, flor]
n. ??, ??; ?? ??
vt ??? ???, ?????
?? ?? ??: ??? ?? ??: ??? ?? ??: ???
?????? ??() ??? ???
??: ??? ?????.
??: ??Math.floor(x)
????: x ?????. ?? ?? ?? ???.?
???: ? x?? ??? ?? x? ?? ??? ?????.
??: floor() ???? ??? ??? ???? ?? ?????? ??? ?? ?? ??? ??? ?????.
?????? ??() ??? ?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <script type="text/javascript"> //在不同的數(shù)字上使用 floor() 方法 document.write(Math.floor(0.60) + "<br />") document.write(Math.floor(0.40) + "<br />") document.write(Math.floor(5) + "<br />") document.write(Math.floor(5.1) + "<br />") document.write(Math.floor(-5.1) + "<br />") document.write(Math.floor(-5.9)) </script> </body> </html>
???? ?? ?
??? ????? ??? "???? ??" ??? ?????