This is a discussion on Re: [PHP] Rounding issue within the PHP General forums, part of the PHP Programming Forums category; > $x = 4.5012412; > echo round($x, 2); // results in 4.5 --- however I want 4.50! I > ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
ahhh ok thanks guys!! That worked ... I knew it was something but I could
not remember which function... thanks again! "Larry E . Ullman" <LarryUllman@DMCInsights.Com> wrote in message news:B16057B0-C210-11D7-A9D4-000393641AFC@DMCInsights.Com... > > $x = 4.5012412; > > echo round($x, 2); // results in 4.5 --- however I want 4.50! I > > want 2 > > decimal places! > > echo number_format ( round ($x, 2), 2); > > Larry > |