Toggle navigation
Dashboard
Dashboard Tracker
Add / Edit My Forums
System Announcements
Discussion
Active Thread Feed
Top Threads Today
Top Threads This Week
Top Threads Library
Go!
View All
View All
Login
Logout
Home
Forums Index
Server Side
/
PHP Server Side Scripting
9:49 am Jun 25, 2026
This page requires javascript.
Forum Moderators:
coopster
Message Too Old, No Replies
Need to shorten long integer
From 0.013234534 to 0.013
twist
Msg#:1306735
5:57 am on Feb 1, 2004
(gmt 0)
I know this is simple enough, I know there is a function that does this but for the life of me I cant remember what it is. So instead of searching for the next hour if someone could give me a hand I would be very thankful.
jatar_k
Msg#:1306736
8:06 am on Feb 1, 2004
(gmt 0)
echo round(0.013234534, 3);
twist
Msg#:1306737
9:02 am on Feb 1, 2004
(gmt 0)
I knew it would be something simple, thanks.
ams_david
Msg#:1306738
9:09 am on Feb 1, 2004
(gmt 0)
and also:
number_format(0.013234534, 3) = 0.013
Join The Conversation
Register
For Free! -
Become a
Pro Member
!
See forum categories
-
Enter the Forum
Moderators and Top Contributors
Moderator List
| Top Contributors:
This Week
,
This Month
,
May
,
Apr
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
June 2026 Google Search Observations
AdSense Earnings and Observations - June 2026
Quite quiet in here, anyone know why?
Best Learning Path for a Web Development Beginner?
Buying traffic to appear on Google Discover
Home
Forums Index
Server Side
/
PHP Server Side Scripting
9:49 am Jun 25, 2026