This shows you the differences between two versions of the page.
nl:ceil [2016/01/01 22:46] |
nl:ceil [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Ceil ===== | ||
+ | ==== Formaat ==== | ||
+ | |||
+ | **ceil** ( // | ||
+ | |||
+ | ==== Beschrijving ==== | ||
+ | |||
+ | Afronden naar **boven** (ceil is het Engelse woord voor // | ||
+ | * Voor positieve getallen is het dus 3,14 → 4 en 5,85 → 6. \\ | ||
+ | * Voor negatieve getallen wordt dezelfde regel toegepast: −4,24 → −4. | ||
+ | ==== Zie ook ==== | ||
+ | |||
+ | [[floor|Floor]] | ||
+ | |||
+ | ==== Voorbeeld ==== | ||
+ | |||
+ | <code basic4gl> | ||
+ | print ceil(9.1) | ||
+ | print ceil(-5.4) | ||
+ | </ | ||
+ | |||
+ | geeft dan | ||
+ | < | ||
+ | 10 | ||
+ | -5 | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | [[atan|vorige]] | [[mathematical|Wiskundige Functies]] | [[cos|volgende]] |