PHP – Round function that always return a float value in any language

PHP Round function that always return a float value in any language:

/**
 * PHP round() function that always return a float value in any language
 *
 * @param $val
 * @param int $precision
 * @param int $mode
 * @return string
 */
function roundVal($val, $precision = 0, $mode = PHP_ROUND_HALF_UP)
{
	return number_format((float) round($val, $precision, $mode), $precision, '.', '');
}