public static function getNumber(float $number, int $decimal = 2): string
	{
		if (floor($number) == $number) {
			$decimal = 0;
		}

		switch (self::$locale) {
			default:
			case 'cs':
			case 'sk':
			case 'de':
			case 'pl':
				return number_format($number, $decimal, ',', ' ');
			case 'en':
				return number_format($number, $decimal);
		}
	}
public static function getNumber(float $number, int $decimal = 2): string
	{
		if (floor($number) == $number) {
			$decimal = 0;
		}

		switch (self::$locale) {
			default:
			case 'cs':
			case 'sk':
			case 'de':
			case 'pl':
				return number_format($number, $decimal, ',', ' ');
			case 'en':
				return number_format($number, $decimal);
		}
	}
public static function getNumber ( float $ number , int $ decimal = 2 ) : string { if ( floor ( $ number ) == $ number ) { $ decimal = 0 ; } switch ( self :: $ locale ) { default : case 'cs' : case 'sk' : case 'de' : case 'pl' : return number_format ( $ number , $ decimal , ',' , ' ' ) ; case 'en' : return number_format ( $ number , $ decimal ) ; } }
Vrati zformatovane cislo
@param float $number
@param int $decimal
@return string
Vrati zformatovane cislo