Skip to content

Modern Math Ceil

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Math Library › Math Library › Ceil

Ceil

Rounds up, towards positive infinity, so Ceil(-2.7) is -2.

Syntax

Ceil( x )

Examples

#import "std/numeric"
using numeric

print Ceil( 2.1 )            '' 3
print Ceil( -2.7 )           '' -2 -- towards POSITIVE infinity

print Floor( -2.7 )          '' -3, the other direction

Library: Math Library
Category: Math Library
Documented under: Nothing Becomes A Keyword

Clone this wiki locally