source/Core/Language.php
public function formatVat($dValue, $oActCur = null)
    {
        $iDecPos = 0;
        $sValue = ( string ) $dValue;
        /** @var \OxidEsales\Eshop\Core\StrRegular $oStr */
        $oStr = getStr();
        if (($iDotPos = $oStr->strpos($sValue, '.')) !== false) {
            $iDecPos = $oStr->strlen($oStr->substr($sValue, $iDotPos + 1));
        }

        $oActCur = $oActCur ? $oActCur : \OxidEsales\Eshop\Core\Registry::getConfig()->getActShopCurrencyObject();
        $iDecPos = ($iDecPos < $oActCur->decimal) ? $iDecPos : $oActCur->decimal;

        return number_format((double) $dValue, $iDecPos, $oActCur->dec, $oActCur->thousand);
    }
public function formatVat($dValue, $oActCur = null)
    {
        $iDecPos = 0;
        $sValue = ( string ) $dValue;
        /** @var \OxidEsales\Eshop\Core\StrRegular $oStr */
        $oStr = getStr();
        if (($iDotPos = $oStr->strpos($sValue, '.')) !== false) {
            $iDecPos = $oStr->strlen($oStr->substr($sValue, $iDotPos + 1));
        }

        $oActCur = $oActCur ? $oActCur : \OxidEsales\Eshop\Core\Registry::getConfig()->getActShopCurrencyObject();
        $iDecPos = ($iDecPos < $oActCur->decimal) ? $iDecPos : $oActCur->decimal;

        return number_format((double) $dValue, $iDecPos, $oActCur->dec, $oActCur->thousand);
    }
public function formatVat ( $ dValue , $ oActCur = null ) { $ iDecPos = 0 ; $ sValue = ( string ) $ dValue ; /** @var \OxidEsales\Eshop\Core\StrRegular $oStr */ $ oStr = getStr ( ) ; if ( ( $ iDotPos = $ oStr -> strpos ( $ sValue , '.' ) ) !== false ) { $ iDecPos = $ oStr -> strlen ( $ oStr -> substr ( $ sValue , $ iDotPos + 1 ) ) ; } $ oActCur = $ oActCur ? $ oActCur : \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getActShopCurrencyObject ( ) ; $ iDecPos = ( $ iDecPos < $ oActCur -> decimal ) ? $ iDecPos : $ oActCur -> decimal ; return number_format ( ( double ) $ dValue , $ iDecPos , $ oActCur -> dec , $ oActCur -> thousand ) ; }
Returns formatted vat value, according to formatting standards.

@param float  $dValue  Plain price
@param object $oActCur Object of active currency

@return string
Returns formatted vat value according to formatting standards .