system/View/Filters.php
public static function round(string $value, $precision = 2, string $type = 'common'): string
	{
		if (! is_numeric($precision))
		{
			$type      = $precision;
			$precision = 2;
		}

		switch ($type)
		{
			case 'common':
				return round($value, $precision);
				break;
			case 'ceil':
				return ceil($value);
				break;
			case 'floor':
				return floor($value);
				break;
		}

		// Still here, just return the value.
		return $value;
	}
public static function round(string $value, $precision = 2, string $type = 'common'): string
	{
		if (! is_numeric($precision))
		{
			$type      = $precision;
			$precision = 2;
		}

		switch ($type)
		{
			case 'common':
				return round($value, $precision);
				break;
			case 'ceil':
				return ceil($value);
				break;
			case 'floor':
				return floor($value);
				break;
		}

		// Still here, just return the value.
		return $value;
	}
Rounds a given $value in one of 3 ways;

- common    Normal rounding
- ceil      always rounds up
- floor     always rounds down

@param string  $value
@param mixed   $precision
@param string  $type

@return string