src/Utility/Number.php
public static function roundTo($number, $increment = 1.0) {
		$precision = static::getDecimalPlaces($increment);
		$res = round($number, $precision);
		if ($precision <= 0) {
			$res = (int)$res;
		}
		return $res;
	}
public static function roundTo($number, $increment = 1.0) {
		$precision = static::getDecimalPlaces($increment);
		$res = round($number, $precision);
		if ($precision <= 0) {
			$res = (int)$res;
		}
		return $res;
	}
public static function roundTo ( $ number , $ increment = 1.0 ) { $ precision = static :: getDecimalPlaces ( $ increment ) ; $ res = round ( $ number , $ precision ) ; if ( $ precision <= 0 ) { $ res = ( int ) $ res ; } return $ res ; }
Round value.

@param float $number
@param float $increment
@return float result
Round value .