Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

formatting output

Status
Not open for further replies.

MrPantsTm

Programmer
Joined
Jan 22, 2004
Messages
71
Location
US
So I have a calculation and it returns a long floating point number. It is only necessary to print out the first say 5 numbers of the mantissa something you could do with setprecision in C++. Does PHP have something to format the output? Thanks!
 
I did do a search for my question on php.net and I'm suprised I didn't come up with number_format. in any case, thanks to both of you, that's what I needed to know
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top