Scratch for Java

Operators::ceilingOf()

This always rounds the number up to the least whole number greater than or equal to the number. For example, ceiling(3.14) = 4 and ceiling(7.68) = 8.

Examples

View on GitHub

Syntax

Java

.ceilingOf(x)

Scratch

([ceiling v] of (x))

Parameters

Name Data Type Description
x double a value

Return

double

ceilingOf()

Create Shareable URL

Select Sections