- 8,477
- 5,693
I don't think that so many significant digits are needed 

Default is 14, so there must be some reason the PHP devs think it's a good value.mfb said:Change it to 3 or 2? There is no point in having more.
I'm guessing that their Focus Group didn't have any scientists or engineers...Greg Bernhardt said:Default is 14, so there must be some reason the PHP devs think it's a good value.
You can use this function to format the decimal places in a number:
$num = 2.12;
printf("%.1f",$num);
prints:
2.1
Well, if it is a general PHP setting: PHP has no idea how precise these numbers are supposed to be. 14 is small enough to avoid displaying rounding errors in most cases, and large enough to keep more digits than anyone is reasonably interested in (with extremely few exceptions).Greg Bernhardt said:Default is 14, so there must be some reason the PHP devs think it's a good value.