unitless ()
Returns the unitless value of the specified number.
Parameters
$number
- The number from which to strip units.
- Type
Number
Return Value
Number
- The given number without units.
Example
@use '@sass-fairy/math';
@debug math.unitless(10px);
// 10
@debug math.unitless(-30rem);
// -30
@debug math.unitless(5s * 8in);
// 40