jscience
  1. jscience
  2. JSCIENCE-68

Units text parser order of operations

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • 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:
      68

      Description

      Order of operations in text parser is different from version 3.

      (Amount<AngularAcceleration>)Amount.valueOf("1000 rad/s^2");
      (Amount<AngularAcceleration>)Amount.valueOf("1000 (rad/s)/s"));

      Both contain rad/s^2, but the following

      (Amount<AngularAcceleration>)Amount.valueOf("1000 rad/s/s"));

      effectively parses as rad/(s/s) and returns a unit of rad

      Confirmed with other units, for example "1000 s/m/m" gives 1000 s

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            dautelle
            Reporter:
            jeffdickson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: