public static function formatNumber($number, $decimals = 0, $invalid = '-'){

		if(!is_numeric($number)) return $invalid;

		$locale = localeconv();

		return number_format($number, $decimals, $locale['decimal_point'], $locale['thousands_sep']);
	}