Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Rounds a float
round(int|float $numint $precision 0int $mode PHP_ROUND_HALF_UP): float
    private function degradeHexColorToAnsi(int $rint $gint $b): int

    
{

        if (
round($this->getSaturation($r$g$b) / 50) === 0) {

            return 
0;

        }
            return 0;

        }



        return (
round($b 255) << 2) | (round($g 255) << 1) | round($r 255);

    }
        foreach ($chartData as $key => $value) {

            
$chartData[$key]['percentage'] = intval(round($value['value'] / $total 100));

        }