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/04/28 08:16:04 UTC
[jira] [Created] (UIMA-5412) Ruta: problem with float variables
Peter Klügl created UIMA-5412:
---------------------------------
Summary: 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
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)