public function toString() { if (!isset($this->units)) { $this->units = $this->getUnits(); } return ($this->units == 'px' ? floor($this->value) : str_replace(',', '.', round($this->value, self::PRECISION))) . $this->units; }