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

Peter Klügl resolved UIMA-5412.
-------------------------------
    Resolution: Fixed

fixed

> 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
>
>
> {noformat}
> 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" = "‰")};
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to