/**
  * {@inheritDoc}
  */
 protected function configure()
 {
     $this->addOption('type', self::FRACTIONAL);
     $this->addOption('precision', 0);
     if (!in_array($this->getOption('type'), self::$types, true)) {
         throw new \InvalidArgumentException(sprintf('The option "type" is expected to be one of "%s"', implode('", "', self::$types)));
     }
     parent::configure();
 }
 /**
  * {@inheritDoc}
  */
 protected function configure()
 {
     $this->addOption('precision', null);
     $this->addOption('grouping', false);
     parent::configure();
 }