SassNumber::convert PHP Method

convert() private method

If this is a unitless numeber it will take the units of other; if not other is coerced to the units of this.
private convert ( SassNumber $other ) : SassNumber
$other SassNumber the other number
return SassNumber the other number with its value and units coerced if neccessary
    private function convert($other)
    {
        if ($this->isUnitless()) {
            $this->numeratorUnits = $other->numeratorUnits;
            $this->denominatorUnits = $other->denominatorUnits;
        } else {
            $other = $other->coerce($this->numeratorUnits, $this->denominatorUnits);
        }
        return $other;
    }