{"action":"closed","issue":{"url":"https://api.github.com/repos/andmarti1424/sc-im/issues/216","repository_url":"https://api.github.com/repos/andmarti1424/sc-im","labels_url":"https://api.github.com/repos/andmarti1424/sc-im/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/andmarti1424/sc-im/issues/216/comments","events_url":"https://api.github.com/repos/andmarti1424/sc-im/issues/216/events","html_url":"https://github.com/andmarti1424/sc-im/issues/216","id":280737034,"number":216,"title":"Cells whose value is just @pi evaluate to zero","user":{"login":"cesss","id":15330020,"avatar_url":"https://avatars0.githubusercontent.com/u/15330020?v=4","gravatar_id":"","url":"https://api.github.com/users/cesss","html_url":"https://github.com/cesss","followers_url":"https://api.github.com/users/cesss/followers","following_url":"https://api.github.com/users/cesss/following{/other_user}","gists_url":"https://api.github.com/users/cesss/gists{/gist_id}","starred_url":"https://api.github.com/users/cesss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesss/subscriptions","organizations_url":"https://api.github.com/users/cesss/orgs","repos_url":"https://api.github.com/users/cesss/repos","events_url":"https://api.github.com/users/cesss/events{/privacy}","received_events_url":"https://api.github.com/users/cesss/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-12-09T17:25:14Z","updated_at":"2017-12-10T01:40:06Z","closed_at":"2017-12-10T01:40:06Z","author_association":"NONE","body":"If I type in a cell just `@pi`, it evaluates to zero.\r\nIf I type `0+@pi`, or `@pi+0`, then it correctly evaluates to 3.14\r\nSo, it seems that the eval() function in interp.c does nothing when `@pi` is alone. Maybe eval() is not called at all.\r\n\r\nHowever, other functions behave correctly if they're alone in a cell. My guess is that the reason could be the lack of parentheses in `@pi`.  It's the only function in sc-im that doesn't have parentheses. I don't know if this function was added by you, or by a previous contributor to sc, but whoever added it, it looks like they forgot to make sc-im ready for correct evaluation of functions that don't have parentheses.\r\n\r\nWould it be possible to implement `@pi` with void parentheses? I mean `@pi()`\r\nIf that was possible, maybe sc-im would evaluate it correctly when it's alone in a cell. Also, import/export to Excel would be easier, as `@pi` in Excel is written PI() \r\n"}}
{"actor":{"display_login":"cesss"}}