You are here

private function CSSmin::round_number in Advanced CSS/JS Aggregation 8.3

Same name and namespace in other branches
  1. 8.2 advagg_css_minify/yui/CSSMin.inc \CSSmin::round_number()
  2. 6 advagg_css_compress/yui/CSSMin.inc \CSSmin::round_number()
2 calls to CSSmin::round_number()
CSSmin::hsl_to_hex in advagg_css_minify/yui/CSSMin.inc
CSSmin::rgb_to_hex in advagg_css_minify/yui/CSSMin.inc

File

advagg_css_minify/yui/CSSMin.inc, line 712

Class

CSSmin

Code

private function round_number($n) {
  return intval(floor(floatval($n) + 0.5), 10);
}