Sass floor() Function

Last Updated:

Sass floor() Function

The floor() function returns the round of a number up to the next lowest whole number.

Example

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

Syntax

floor($x)

Parameter Value

ValueTypeExplanation
$x Required Specifies a number.

Return Value

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

Share this Page

Meet the Author