Use minimal-length literals to initialize PI and E constants

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: 19
    • Component/s: core-libs
    • b14

      Depending on the range of the number line, a double value has between 15 and 17 digits of decimal precision. The literal used to initialize Math.PI and Math.E have several digits more precision than that maximum.

      That is potentially confusing to readers of the code and the minimum length strings to exactly represent the value in question should be used instead.

            Assignee:
            Joe Darcy
            Reporter:
            Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: