{"action":"closed","issue":{"url":"https://api.github.com/repos/dmn-tck/tck/issues/190","repository_url":"https://api.github.com/repos/dmn-tck/tck","labels_url":"https://api.github.com/repos/dmn-tck/tck/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/dmn-tck/tck/issues/190/comments","events_url":"https://api.github.com/repos/dmn-tck/tck/issues/190/events","html_url":"https://github.com/dmn-tck/tck/issues/190","id":379257040,"node_id":"MDU6SXNzdWUzNzkyNTcwNDA=","number":190,"title":"DMN Power function","user":{"login":"SimonRinguette","id":521578,"node_id":"MDQ6VXNlcjUyMTU3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/521578?v=4","gravatar_id":"","url":"https://api.github.com/users/SimonRinguette","html_url":"https://github.com/SimonRinguette","followers_url":"https://api.github.com/users/SimonRinguette/followers","following_url":"https://api.github.com/users/SimonRinguette/following{/other_user}","gists_url":"https://api.github.com/users/SimonRinguette/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonRinguette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonRinguette/subscriptions","organizations_url":"https://api.github.com/users/SimonRinguette/orgs","repos_url":"https://api.github.com/users/SimonRinguette/repos","events_url":"https://api.github.com/users/SimonRinguette/events{/privacy}","received_events_url":"https://api.github.com/users/SimonRinguette/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-09T17:39:58Z","updated_at":"2018-11-30T17:19:56Z","closed_at":"2018-11-30T17:19:56Z","author_association":"CONTRIBUTOR","body":"I recently came across that the DMN Power function e1 ** e2 is defined as follow in the spec:\r\n\r\ntype(e1) is number. value(e2) is an integer ...\r\n(Table 55 page 134 of the DMN 1.2 beta spec)\r\n\r\nThis means that 2 ** 2 is 4 but what about 2 ** 2.5? Is it 4 because we take the integer portion of 2.5) is it null with an error because the function clearly states that e2 needs to be an integer.\r\n\r\nSome things to consider, a lot of financial formulas use interest rates (non integer) as exponent.\r\n\r\nBasically, we (Trisotech) need a solution to provide 2 ** 2.5 in our execution.\r\n\r\n2 choices:\r\n\r\n1.  We create a non standard power function: power(e1, e2) without that e2 is an integer requirement\r\n2.  We support the ** operator without the restriction of e2 is an integer.\r\n\r\nI'm certainly not a big fan of solution 1 since it introduce a new function that does nearly the same thing as the first one.\r\n\r\nI'm more leaning toward solution 2 and interpreting that DMN require the support for e1 ** e2 to \"at least\" support integer values for e2 and we would also support non integer values.\r\n\r\nAnyway, I would certainly like to have a clarification on that in the DMN 1.3 specification.\r\n\r\n"}}
{"actor":{"display_login":"SimonRinguette"}}