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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.