protected static function fmtRep($char, &$string, $value)
    {
        if (preg_match_all('/([0-9]{0,1})' . $char . '/', $string, $m)) {
            for ($i = 0; $i < count($m[0]); $i++) {
                $val    = round($value, (int)$m[1][$i]);
                $string = str_replace($m[0][$i], $val, $string);
            }
        }
    }