public function GatherContentFunctions::percent in GatherContent 7.2
Return percentage of a total number.
1 call to GatherContentFunctions::percent()
- GatherContentFunctions::getMediaAjaxOutput in includes/
functions.inc - Used during media import to return output array containing file details.
File
- includes/
functions.inc, line 32 - Class containing general functions used throughout the importing. Extended by GatherContentCurl.
Class
- GatherContentFunctions
- @file Class containing general functions used throughout the importing. Extended by GatherContentCurl.
Code
public function percent($num, $total) {
return number_format($num / $total * 100, 2);
}