SplitScript reference / Float / ceil
Float.ceil
Method
T.ceil() -> T where T: Float
Rounds up to the nearest integral value.
Finite fractional values move toward positive infinity. Infinity and NaN are returned unchanged.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Round a counter up
let requiredPages = 2.25.ceil()