Question: How do I round a number to n decimal places? Answer: To round a number in JavaScript, use the Math.round method: Math.round(X); // round X to an ...
確定! 回上一頁