I need to make a number no longer than 2 decimals long
i.e
this----> 102.23589
To-----> 102.24
Any ideas
thanks in advance![]()
| SitePoint Sponsor |





I need to make a number no longer than 2 decimals long
i.e
this----> 102.23589
To-----> 102.24
Any ideas
thanks in advance![]()
"Am I the only one doing ASP.NET in Delphi(Pascal)?"


ORPHP Code:number_format($number, 2)
Either one should get you what you want.PHP Code:round($number, 2)





That worked wonders, thanks for the help![]()
"Am I the only one doing ASP.NET in Delphi(Pascal)?"
Bookmarks