private static function getPercentageValue($value, $divisor, $quotientPrecision)
    {
        if ($value == 0) {
            $evolution = 0;
        } elseif ($divisor == 0) {
            $evolution = 100;
        } else {
            $evolution = ($value / $divisor) * 100;
        }

        $evolution = round($evolution, $quotientPrecision);
        return $evolution;
    }
private static function getPercentageValue($value, $divisor, $quotientPrecision)
    {
        if ($value == 0) {
            $evolution = 0;
        } elseif ($divisor == 0) {
            $evolution = 100;
        } else {
            $evolution = ($value / $divisor) * 100;
        }

        $evolution = round($evolution, $quotientPrecision);
        return $evolution;
    }
private static function getPercentageValue ( $ value , $ divisor , $ quotientPrecision ) { if ( $ value == 0 ) { $ evolution = 0 ; } elseif ( $ divisor == 0 ) { $ evolution = 100 ; } else { $ evolution = ( $ value / $ divisor ) * 100 ; } $ evolution = round ( $ evolution , $ quotientPrecision ) ; return $ evolution ; }
Returns an evolution percent based on a value & divisor.
Returns an evolution percent based on a value & divisor .