fmod

Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Returns the floating point remainder (modulo) of the division of the arguments
<?php fmod(float $num1, float $num2): float
<?php         $color = new Color($color);




        $angle = fmod($angle, 360);




        $image->setCore(imagerotate($image->getCore(), $angle, $color->getInt()));
<?php         $color = new Color($color);




        $angle = fmod($angle, 360);




        $image->getCore()->rotateImage($color->getPixel(), ($angle * -1));