jscience
  1. jscience
  2. JSCIENCE-105

MeasureFormat.parse returns wrong value for negative numbers expressed using a CompoundUnit

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: Version 6.0
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      105

      Description

      Value aggregated during parse of a measure which is expressed using CompoundUnit
      symbols (like °:':") is wrong if the leading value is a negative number.

      For example, parsing 13°15' gives -765' (-13*60+15) instead of -795' ((13*60+15))!

        Activity

        Hide
        zeled added a comment -

        Created an attachment (id=13)
        Test to demonstrate MeasureFormat.parse bug for negative numbers + compound unit

        Show
        zeled added a comment - Created an attachment (id=13) Test to demonstrate MeasureFormat.parse bug for negative numbers + compound unit

          People

          • Assignee:
            jscience-issues
            Reporter:
            zeled
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: