@function strip-unit($number) {
  @if type-of($number) == 'number' and not unitless($number) {
    @return $number / ($number * 0 + 1);
  }
  @return $number;
}

@function rem($number) {
	$number: strip-unit($number);
	@return (($number / 16) * 1rem);
}

