Rounds a number to its closest integer

Parameters

$n:

Return value

int

2 calls to CSSmin::roundNumber()
CSSmin::hslToRgb in advagg_css_compress/yui/CSSMin.inc
Converts a HSL color into a RGB color
CSSmin::rgbPercentageToRgbInteger in advagg_css_compress/yui/CSSMin.inc
Converts a string containing and RGB percentage value into a RGB integer value i.e. '90%' -> 229.5

File

advagg_css_compress/yui/CSSMin.inc, line 1224

Class

CSSmin

Code

private function roundNumber($n) {
    return intval(round(floatval($n)), 10);
}