public function calculatePercentage($decimal = 1)
    {
        // Profile not loaded yet.
        if (is_null($this->percentile)) {
            return null;
        }

        // Calculate percentage and return value
        return (float) number_format($this->percentile * 100, $decimal, '.', '');
    }
public function calculatePercentage($decimal = 1)
    {
        // Profile not loaded yet.
        if (is_null($this->percentile)) {
            return null;
        }

        // Calculate percentage and return value
        return (float) number_format($this->percentile * 100, $decimal, '.', '');
    }
public function calculatePercentage ( $ decimal = 1 ) { // Profile not loaded yet. if ( is_null ( $ this -> percentile ) ) { return null ; } // Calculate percentage and return value return ( float ) number_format ( $ this -> percentile * 100 , $ decimal , '.' , '' ) ; }
Calculate the percentage for this node.

@param int $decimal

@return float|null
Calculate the percentage for this node .