I need to round floating point numbers up to the nearest integer, even if the number after the point is less than 0.5.
For example,
- 4.3 should be 5 (not 4)
- 4.8 should be 5
How can I do this in JavaScript?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…