source/Core/Utils.php
public function currency2Float($sValue)
    {
        $fRet = $sValue;
        $iPos = strrpos($sValue, ".");
        if ($iPos && ((strlen($sValue) - 1 - $iPos) < 2 + 1)) {
            // replace decimal with ","
            $fRet = substr_replace($fRet, ",", $iPos, 1);
        }
        // remove thousands
        $fRet = str_replace([" ", "."], "", $fRet);

        return (float) str_replace(",", ".", $fRet);
    }
public function currency2Float($sValue)
    {
        $fRet = $sValue;
        $iPos = strrpos($sValue, ".");
        if ($iPos && ((strlen($sValue) - 1 - $iPos) < 2 + 1)) {
            // replace decimal with ","
            $fRet = substr_replace($fRet, ",", $iPos, 1);
        }
        // remove thousands
        $fRet = str_replace([" ", "."], "", $fRet);

        return (float) str_replace(",", ".", $fRet);
    }
public function currency2Float ( $ sValue ) { $ fRet = $ sValue ; $ iPos = strrpos ( $ sValue , "." ) ; if ( $ iPos && ( ( strlen ( $ sValue ) - 1 - $ iPos ) < 2 + 1 ) ) { // replace decimal with "," $ fRet = substr_replace ( $ fRet , "," , $ iPos , 1 ) ; } // remove thousands $ fRet = str_replace ( [ " " , "." ] , "" , $ fRet ) ; return ( float ) str_replace ( "," , "." , $ fRet ) ; }
Returns formatted currency string, according to formatting standards.

@param string $sValue Formatted price

@return float
Returns formatted currency string according to formatting standards .