public function __toString()
{
$value = $this->getValue();
if (is_numeric($value)) {
$locale = null;
try {
$locale = \Zend_Registry::get("Zend_Locale");
} catch (\Exception $e) {
}
if ($locale) {
$value = \Zend_Locale_Format::toNumber($value, ['locale' => $locale]);
}
}
if ($this->getUnit() instanceof Unit) {
$value .= " " . $this->getUnit()->getAbbreviation();
}
return $value;
}