SassScriptFunctions::round
Rounds a number to the nearest whole number.
For example: round(10.4px) => 10px round(10.6px) => 11px
Signature
public function round(
$number )
Parameters
$number
—
Returns
- new
- SassNumber The rounded number
Errors/Exceptions
-
SassScriptFunctionException
- If $number is not a number