protected function init()
    {
        //Get options from settings
        $iDecimalValue = (int) Settings::getValue('decimals');
        if ($iDecimalValue >= 0) {
            $this->iDecimal = $iDecimalValue;
        }

        $sDecPointValue = Settings::getValue('dec_point');
        switch ($sDecPointValue) {
            case 'comma':
                $this->sDecPoint = ',';
                break;
            default:
                $this->sDecPoint = '.';
        }

        $sThousandsSepValue = Settings::getValue('thousands_sep');
        switch ($sThousandsSepValue) {
            case 'space':
                $this->sThousandsSep = ' ';
                break;
            default:
                $this->sThousandsSep = '';
        }
    }