Insights Rating: Is Precision Necessary?

  • Context: Bug 
  • Thread starter Thread starter DrClaude
  • Start date Start date
DrClaude
Mentor
Messages
8,478
Reaction score
5,698
I don't think that so many significant digits are needed :wink:

lens.jpg
 
Physics news on Phys.org
Plus, the math looks wrong...
 
Precision is important...
 
I changed the number of significant digits displayed in floating point numbers from 14 to 17. Might be what caused this issue. I'll revert back to 14.
 
Change it to 3 or 2? There is no point in having more.
 
mfb said:
Change it to 3 or 2? There is no point in having more.
Default is 14, so there must be some reason the PHP devs think it's a good value.
 
Greg Bernhardt said:
Default is 14, so there must be some reason the PHP devs think it's a good value.
I'm guessing that their Focus Group didn't have any scientists or engineers... :smile:
 
Greg Bernhardt said:
Default is 14, so there must be some reason the PHP devs think it's a good value.
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).
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 0 ·
Replies
0
Views
4K
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K