Sonata\PriceBundle\SonataPriceBundle::getBcScale PHP Method

getBcScale() public method

Returns bcscale() setted value.
public getBcScale ( ) : integer
return integer
    public function getBcScale()
    {
        $sqrt = bcsqrt('2');
        return strlen(substr($sqrt, strpos($sqrt, '.') + 1));
    }