Sass round() Function

Last Updated:

Sass round() Function

The round() function returns the round of a number up to the nearest whole number.

Example

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

Syntax

round($x)

Parameter Value

ValueTypeExplanation
$x Required Specifies a number.

Return Value

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

Share this Page

Meet the Author