private function convertNumber($sign, $integer, $fractions)
    {
        try {
            $result = implode('', $this->convertInteger($this->source->splitString($integer)));

            if ($fractions !== null) {
                $result .= '.' . implode('', $this->convertFractions($this->source->splitString($fractions)));
            }
        } catch (DigitList\InvalidDigitException $ex) {
            return false;
        }

        return $sign . $result;
    }
private function convertNumber($sign, $integer, $fractions)
    {
        try {
            $result = implode('', $this->convertInteger($this->source->splitString($integer)));

            if ($fractions !== null) {
                $result .= '.' . implode('', $this->convertFractions($this->source->splitString($fractions)));
            }
        } catch (DigitList\InvalidDigitException $ex) {
            return false;
        }

        return $sign . $result;
    }
private function convertNumber ( $ sign , $ integer , $ fractions ) { try { $ result = implode ( '' , $ this -> convertInteger ( $ this -> source -> splitString ( $ integer ) ) ) ; if ( $ fractions !== null ) { $ result .= '.' . implode ( '' , $ this -> convertFractions ( $ this -> source -> splitString ( $ fractions ) ) ) ; } } catch ( DigitList \ InvalidDigitException $ ex ) { return false ; } return $ sign . $ result ; }
Converts the different parts of the number and handles invalid digits.
@param string $sign Sign that preceded the number or an empty string
@param string $integer The integer part of the number
@param string|null $fractions The fractional part of the number or null if none
@return string|false The converted number or false on error
Converts the different parts of the number and handles invalid digits .