{"action":"created","issue":{"url":"https://api.github.com/repos/schibsted/jslt/issues/23","repository_url":"https://api.github.com/repos/schibsted/jslt","labels_url":"https://api.github.com/repos/schibsted/jslt/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/schibsted/jslt/issues/23/comments","events_url":"https://api.github.com/repos/schibsted/jslt/issues/23/events","html_url":"https://github.com/schibsted/jslt/issues/23","id":359487561,"node_id":"MDU6SXNzdWUzNTk0ODc1NjE=","number":23,"title":"Float problem","user":{"login":"ca7erina","id":3540806,"node_id":"MDQ6VXNlcjM1NDA4MDY=","avatar_url":"https://avatars1.githubusercontent.com/u/3540806?v=4","gravatar_id":"","url":"https://api.github.com/users/ca7erina","html_url":"https://github.com/ca7erina","followers_url":"https://api.github.com/users/ca7erina/followers","following_url":"https://api.github.com/users/ca7erina/following{/other_user}","gists_url":"https://api.github.com/users/ca7erina/gists{/gist_id}","starred_url":"https://api.github.com/users/ca7erina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ca7erina/subscriptions","organizations_url":"https://api.github.com/users/ca7erina/orgs","repos_url":"https://api.github.com/users/ca7erina/repos","events_url":"https://api.github.com/users/ca7erina/events{/privacy}","received_events_url":"https://api.github.com/users/ca7erina/received_events","type":"User","site_admin":false},"labels":[{"id":961289023,"node_id":"MDU6TGFiZWw5NjEyODkwMjM=","url":"https://api.github.com/repos/schibsted/jslt/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-09-12T13:44:19Z","updated_at":"2018-09-12T15:46:29Z","closed_at":"2018-09-12T15:46:29Z","author_association":"NONE","body":"I have input \r\n```\r\n{\r\n  \"value\" : 6.777176437128938e+306\r\n}\r\n\r\n```\r\n\r\nJSLT \r\n```\r\ndef x(value)\r\n if ($value >= 7.0)\r\n    2\r\n else if($value < 7.0)\r\n    1\r\n else \r\n    0\r\n\r\n{\r\n  \"value\" : x(.value)\r\n}\r\n```\r\n\r\nAnd then I get a result as below, which is not correct.\r\nI'm not sure where is wrong here, please help !\r\n```\r\n{\r\n  \"value\" : 2\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/schibsted/jslt/issues/comments/420698005","html_url":"https://github.com/schibsted/jslt/issues/23#issuecomment-420698005","issue_url":"https://api.github.com/repos/schibsted/jslt/issues/23","id":420698005,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDY5ODAwNQ==","user":{"login":"larsga","id":446984,"node_id":"MDQ6VXNlcjQ0Njk4NA==","avatar_url":"https://avatars0.githubusercontent.com/u/446984?v=4","gravatar_id":"","url":"https://api.github.com/users/larsga","html_url":"https://github.com/larsga","followers_url":"https://api.github.com/users/larsga/followers","following_url":"https://api.github.com/users/larsga/following{/other_user}","gists_url":"https://api.github.com/users/larsga/gists{/gist_id}","starred_url":"https://api.github.com/users/larsga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larsga/subscriptions","organizations_url":"https://api.github.com/users/larsga/orgs","repos_url":"https://api.github.com/users/larsga/repos","events_url":"https://api.github.com/users/larsga/events{/privacy}","received_events_url":"https://api.github.com/users/larsga/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T15:46:29Z","updated_at":"2018-09-12T15:46:29Z","author_association":"MEMBER","body":"No worries. Everyone makes mistakes. :)\r\n\r\nI'll close this, then."}}
{"actor":{"display_login":"larsga"}}