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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.3
    • Fix Version/s: 0.4
    • Component/s: Utilities
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: