[
https://issues.apache.org/jira/browse/UIMA-5412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter Klügl reassigned UIMA-5412:
---------------------------------
Assignee: Peter Klügl
> 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
>
> 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)