Sass abs() Function

Last Updated:

Sass abs() Function

The abs() function returns the absolute value of a number.

Example

SASS TO CSS CONVERTER
//Check your console @debug abs(5px); // 5px @debug abs(-5px); // 5px

Syntax

abs($x)

Parameter Value

ValueTypeExplanation
$x Required A number

Return Value

ValueExplanation
Number Returns the absolute value of $x.

Share this Page

Meet the Author