📜  javascript代码示例中如何使用.ceil()方法计算大于等于43.8的最小整数

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

代码示例2
console.log(Math.random()); // Prints a random number between 0 and 1
Math.random() * 50;
Math.floor(Math.random() * 50);
console.log(Math.floor(Math.random() * 50)); // Prints a random whole number between 0 and 50
console.log(Math.random() * 100); // prints a random number between 10 and 30
console.log(Math.floor(Math.random() * 100)) // prints a random number between 10 and 
Math.ceil(43.8);
43.8 = Math.ceil(43.8);