I'm doing some calculations in PHP and I'm getting numbers that look like 0.20758605003357.
How can I round that so the output is 0.21 in that case. Or more generally, so that the number, whatever it is, is rounded to the hundredths' place.
I'm doing some calculations in PHP and I'm getting numbers that look like 0.20758605003357.
How can I round that so the output is 0.21 in that case. Or more generally, so that the number, whatever it is, is rounded to the hundredths' place.