I couldn't find this in the archives.
Simple thing, I imagine, I just can't figure out the PHP function that does this.
I am doing math in PHP using "number_format(),
Code Ex.
$percentage = $totalrequests/$todaysrequests;
$percentagerounded = number_format($percentage,2);
Whereas if the variables were filled in, the math would look like...
$percentage = 25/5;
Which would result in
0.20
However, I want to convert 0.20 so it looks like this...
20.0%
What PHP function am I looking for?
Thanks