Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Bug Insights rating

  1. Apr 12, 2017 #1

    DrClaude

    User Avatar

    Staff: Mentor

    I don't think that so many significant digits are needed :wink:

    lens.jpg
     
  2. jcsd
  3. Apr 12, 2017 #2

    berkeman

    User Avatar

    Staff: Mentor

    Plus, the math looks wrong...
     
  4. Apr 12, 2017 #3

    Drakkith

    User Avatar

    Staff: Mentor

    Precision is important...
     
  5. Apr 12, 2017 #4
    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.
     
  6. Apr 12, 2017 #5

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    Change it to 3 or 2? There is no point in having more.
     
  7. Apr 12, 2017 #6
    Default is 14, so there must be some reason the PHP devs think it's a good value.
     
  8. Apr 12, 2017 #7

    berkeman

    User Avatar

    Staff: Mentor

    I'm guessing that their Focus Group didn't have any scientists or engineers... :smile:
     
  9. Apr 12, 2017 #8

    robphy

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

  10. Apr 12, 2017 #9

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    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).
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: Insights rating
  1. Comments on Insights (Replies: 12)

Loading...