Rounds a number to its closest integer
Paramètres
$n:
Return value
int
2 calls to CSSmin::roundNumber()
- CSSmin::hslToRgb dans advagg_css_compress/
yui/ CSSMin.inc - Converts a HSL color into a RGB color
- CSSmin::rgbPercentageToRgbInteger dans advagg_css_compress/
yui/ CSSMin.inc - Converts a string containing and RGB percentage value into a RGB integer value i.e. '90%' -> 229.5
Fichier
-
advagg_css_compress/
yui/ CSSMin.inc, line 1224
Classe
Code
private function roundNumber($n) {
return intval(round(floatval($n)), 10);
}