<?php round(int|float $num, int $precision = 0, int $mode = PHP_ROUND_HALF_UP): float
<?php private function degradeHexColorToAnsi(int $r, int $g, int $b): int { if (round($this->getSaturation($r, $g, $b) / 50) === 0) { return 0; }
<?php return 0; } return (round($b / 255) << 2) | (round($g / 255) << 1) | round($r / 255); }
<?php foreach ($chartData as $key => $value) { $chartData[$key]['percentage'] = intval(round($value['value'] / $total * 100)); }