You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Peter Klügl (JIRA)" <de...@uima.apache.org> on 2017/05/17 15:00:08 UTC

[jira] [Updated] (UIMA-5412) Ruta: problem with float variables

     [ https://issues.apache.org/jira/browse/UIMA-5412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Klügl updated UIMA-5412:
------------------------------
    Fix Version/s: 2.6.1ruta

> Ruta: problem with float variables
> ----------------------------------
>
>                 Key: UIMA-5412
>                 URL: https://issues.apache.org/jira/browse/UIMA-5412
>             Project: UIMA
>          Issue Type: Bug
>          Components: Ruta
>    Affects Versions: 2.6.0ruta
>            Reporter: Peter Klügl
>            Assignee: Peter Klügl
>             Fix For: 2.6.1ruta
>
>
> 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" = "‰")};



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)