public function format_number($n = '') { return $n === '' ? '' : number_format((double) $n, 2, '.', ','); }