in reply to Filthy Floats
So, adding that to the code should turn your unsightly "0.980000019073486" into a "0.98" ... your whites whiter, you brights birghter, and leaves your clothes smelling fresher :-)$number = 0.980000019073486; $number = sprintf("%.2f",$number);
|
|---|