src/Maths/Arithmetic/Helper.php
public static function modulo($a, $b)
    {
        if (abs($b)>abs($a)) {
            return $a;
        }
        if ($a>0 && $b>0) {
            return ($a%$b);
        }
        return self::getModuloFromEntirePart($a, $b);
    }
public static function modulo($a, $b)
    {
        if (abs($b)>abs($a)) {
            return $a;
        }
        if ($a>0 && $b>0) {
            return ($a%$b);
        }
        return self::getModuloFromEntirePart($a, $b);
    }
Try to get the "true" modulo

@param $a
@param $b
@return float|int