Goldfiles
06-02-2007, 05:57 PM
I want to round to exactly 2 decimal places, even if the number starts out with no decimals.
Example:
$number = 2;
I want this to round to 2.00
I am using this code right now, but I dont know how to tell it to always round to 2 decimal places even if it means tacking on two zeros at the end.
$number = round($number, 2);
Should be an easy fix for this. Help?
Example:
$number = 2;
I want this to round to 2.00
I am using this code right now, but I dont know how to tell it to always round to 2 decimal places even if it means tacking on two zeros at the end.
$number = round($number, 2);
Should be an easy fix for this. Help?
