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

Ruta: problem with float variables

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.0ruta
    • 2.6.1ruta
    • Ruta
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: