Sass ceil() Function

Last Updated:

Sass ceil() Function

The ceil() function returns the round of a number up to the next highest whole number.

Example

SASS TO CSS CONVERTER
//Check your console @debug ceil(5); // 5 @debug ceil(5.2); // 6 @debug ceil(5.9); // 6

Syntax

ceil($x)

Parameter Value

ValueTypeExplanation
$x Required Specifies a number.

Return Value

ValueExplanation
Number Returns the round of $x up to the next highest whole number.

Share this Page

Meet the Author