Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-142

Angle(89 + 1./60).toString() produces 89°00′60″ instead of 89°01′00″

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3
    • 0.4
    • Utilities
    • None

    Description

      A rounding error in the internal AngleFormat formatting code cause format(89.01666666666667) to produce 89°00′60″ instead of 89°01′00″ when the AngleFormat is configured for using a variable number of fraction digits. This bug does not happen when the AngleFormat pattern defines a fixed amount of fraction digits. Angle.toString() is affected since it uses a variable number of digits.

      Attachments

        Issue Links

          Activity

            People

              desruisseaux Martin Desruisseaux
              desruisseaux Martin Desruisseaux
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: