Math.ceil(7.042); will round off to 8 | Sololearn: Learn to code for FREE!
Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję
+ 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 Odpowiedź
+ 15
makes sense as ceil is a short for ceiling....
8th Jul 2017, 1:40 PM
Burey
Burey - avatar