Is it possible to add a (dynamic) unit to a unitless number in sass?
问题 First of all, I am aware that to turn a unitless value into one with a unit I can multiply a unitless value by a single unit: $value: 25 * 1px; // 25px However I would like to know if there is any way to do this when the unit is dynamic. $unit: rem; $value: 23; .Box { // Try interpolation $united-value: #{$value}#{$unit}; value: $united-value; // Appears to be correct // Check it is actually a number using unitless check: unitless($united-value); // $number: "23rem" is not a number for