Math.ceil(7.042); will round off to 8 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Math.ceil(7.042); will round off to 8

Math.ceil(7.042); will round off to 8 which means it will round off to next full value not to the nearest full value.

8th Jul 2017, 1:17 PM
Madhu GB
Madhu GB - avatar
1 Answer
+ 15
makes sense as ceil is a short for ceiling....
8th Jul 2017, 1:40 PM
Burey
Burey - avatar