This shows you the differences between two versions of the page.
— |
pt:ceil [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Ceil ===== | ||
+ | ==== Formato ==== | ||
+ | |||
+ | **ceil** ( // | ||
+ | |||
+ | ==== Descrição ==== | ||
+ | |||
+ | Devolve o número inteiro imediatamente acima da // | ||
+ | |||
+ | ==== Ver também ==== | ||
+ | |||
+ | [[floor|Floor]] | ||
+ | |||
+ | ==== Exemplo ==== | ||
+ | |||
+ | < | ||
+ | print ceil(9.1) | ||
+ | print ceil(-5.4) | ||
+ | </ | ||
+ | will print | ||
+ | < | ||
+ | 10 | ||
+ | -5 | ||
+ | </ |