/**
  * Set a new value
  *
  * @param  $value  mixed  - Value as string, integer, real or float
  * @param  $type   type   - OPTIONAL a Zend_Measure_Capacitance Type
  * @param  $locale locale - OPTIONAL a Zend_Locale Type
  * @throws Zend_Measure_Exception
  */
 public function setValue($value, $type, $locale = false)
 {
     if (empty($locale)) {
         $locale = $this->_Locale;
     }
     $value = Zend_Locale_Format::getNumber($value, $locale);
     if (empty(self::$_UNITS[$type])) {
         parent::throwException('unknown type of capacity:' . $type);
     }
     parent::setValue($value, $type, $locale);
     parent::setType($type);
 }