Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-5412

Ruta: problem with float variables

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0ruta
    • Fix Version/s: 2.6.1ruta
    • Component/s: Ruta
    • Labels:
      None

      Description

      DECLARE Annotation Percent(STRING class, FLOAT value, STRING unit );
      FLOAT a2,a1;
      // works as expected: value is 10.0 for input "10 %"
      (NUM{PARSE(a1)} "%") {-> CREATE (Percent, "value" = a1, "class" = "Percent", "unit" = "%")};
      // Example 2: => returns wrong value 0.0. ASSIGN() is excecuted after CREATE() ?
      (NUM{PARSE(a1)} "‰") {-> ASSIGN(a1, a1/10), CREATE (Percent, "value" = a1, "class" = "Percent", "unit" = "‰")};
      

        Attachments

          Activity

            People

            • Assignee:
              pkluegl Peter Klügl
              Reporter:
              pkluegl Peter Klügl
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: