SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Stripping decimals?
-
May 8, 2005, 15:55 #1
- Join Date
- Dec 2004
- Location
- At My Desk!!
- Posts
- 1,642
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Stripping decimals?
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)?"
-
May 8, 2005, 16:02 #2
- Join Date
- Apr 2001
- Location
- Michigan
- Posts
- 284
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
PHP Code:number_format($number, 2)
PHP Code:round($number, 2)
-
May 8, 2005, 16:06 #3
- Join Date
- Dec 2004
- Location
- At My Desk!!
- Posts
- 1,642
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
That worked wonders, thanks for the help
"Am I the only one doing ASP.NET in Delphi(Pascal)?"
Bookmarks