src/Core/TypeManager.php
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;
    }
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;
    }
Unformat a number to value

@param string $format - type format
@param string $formattedValue - formatted string
@return mixed