protected function numberToValue($format, $formattedValue)
    {
        if ($formattedValue === false || $formattedValue === true) {
            return null;
        }
        if ($format[0] == "%") {
            return sscanf($formattedValue, $format);
        }
        if (!$this->_localeInfo) {
            return $formattedValue;
        }
        $tmp = str_replace($this->_localeInfo['thousands_sep'], null, $formattedValue);
        $tmp = str_replace($this->_localeInfo['decimal_point'], ".", $tmp);
        if ($format == "Int") {
            return (int) $tmp;
        }
        return $tmp;
    }