📜  math ceil floor - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:26.902000             🧑  作者: Mango

代码示例1
//round up to the next highest value
Math.ceil(11.49); //12 

//the greatest integer that is less than or equal to x
Math.floor(11.49); //11