protected function getDisplayValue($value)
    {
        // if the value is valid, format accordingly
        if (!$this->hasMessage() && is_numeric($value)) {
            $value = SwatI18NLocale::get($this->locale)->formatCurrency(
                $value,
                false,
                array('fractional_digits' => $this->decimal_places)
            );
        }

        return $value;
    }