{"action":"created","issue":{"url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/2112","repository_url":"https://api.github.com/repos/bridgedotnet/Bridge","labels_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/2112/labels{/name}","comments_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/2112/comments","events_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/2112/events","html_url":"https://github.com/bridgedotnet/Bridge/issues/2112","id":192192379,"number":2112,"title":"double.Parse incorrectly returns value instead of throwing FormatException","user":{"login":"Zaid-Ajaj","id":13316248,"avatar_url":"https://avatars.githubusercontent.com/u/13316248?v=3","gravatar_id":"","url":"https://api.github.com/users/Zaid-Ajaj","html_url":"https://github.com/Zaid-Ajaj","followers_url":"https://api.github.com/users/Zaid-Ajaj/followers","following_url":"https://api.github.com/users/Zaid-Ajaj/following{/other_user}","gists_url":"https://api.github.com/users/Zaid-Ajaj/gists{/gist_id}","starred_url":"https://api.github.com/users/Zaid-Ajaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zaid-Ajaj/subscriptions","organizations_url":"https://api.github.com/users/Zaid-Ajaj/orgs","repos_url":"https://api.github.com/users/Zaid-Ajaj/repos","events_url":"https://api.github.com/users/Zaid-Ajaj/events{/privacy}","received_events_url":"https://api.github.com/users/Zaid-Ajaj/received_events","type":"User","site_admin":false},"labels":[{"id":74689535,"url":"https://api.github.com/repos/bridgedotnet/Bridge/labels/defect","name":"defect","color":"FF4136","default":false}],"state":"open","locked":false,"assignee":{"login":"vladsch","id":378225,"avatar_url":"https://avatars.githubusercontent.com/u/378225?v=3","gravatar_id":"","url":"https://api.github.com/users/vladsch","html_url":"https://github.com/vladsch","followers_url":"https://api.github.com/users/vladsch/followers","following_url":"https://api.github.com/users/vladsch/following{/other_user}","gists_url":"https://api.github.com/users/vladsch/gists{/gist_id}","starred_url":"https://api.github.com/users/vladsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladsch/subscriptions","organizations_url":"https://api.github.com/users/vladsch/orgs","repos_url":"https://api.github.com/users/vladsch/repos","events_url":"https://api.github.com/users/vladsch/events{/privacy}","received_events_url":"https://api.github.com/users/vladsch/received_events","type":"User","site_admin":false},"assignees":[{"login":"vladsch","id":378225,"avatar_url":"https://avatars.githubusercontent.com/u/378225?v=3","gravatar_id":"","url":"https://api.github.com/users/vladsch","html_url":"https://github.com/vladsch","followers_url":"https://api.github.com/users/vladsch/followers","following_url":"https://api.github.com/users/vladsch/following{/other_user}","gists_url":"https://api.github.com/users/vladsch/gists{/gist_id}","starred_url":"https://api.github.com/users/vladsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladsch/subscriptions","organizations_url":"https://api.github.com/users/vladsch/orgs","repos_url":"https://api.github.com/users/vladsch/repos","events_url":"https://api.github.com/users/vladsch/events{/privacy}","received_events_url":"https://api.github.com/users/vladsch/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/bridgedotnet/Bridge/milestones/33","html_url":"https://github.com/bridgedotnet/Bridge/milestones/15.5","labels_url":"https://api.github.com/repos/bridgedotnet/Bridge/milestones/33/labels","id":2105980,"number":33,"title":"15.5","description":"","creator":{"login":"geoffreymcgill","id":62210,"avatar_url":"https://avatars.githubusercontent.com/u/62210?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffreymcgill","html_url":"https://github.com/geoffreymcgill","followers_url":"https://api.github.com/users/geoffreymcgill/followers","following_url":"https://api.github.com/users/geoffreymcgill/following{/other_user}","gists_url":"https://api.github.com/users/geoffreymcgill/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffreymcgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffreymcgill/subscriptions","organizations_url":"https://api.github.com/users/geoffreymcgill/orgs","repos_url":"https://api.github.com/users/geoffreymcgill/repos","events_url":"https://api.github.com/users/geoffreymcgill/events{/privacy}","received_events_url":"https://api.github.com/users/geoffreymcgill/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":51,"state":"open","created_at":"2016-11-01T04:05:41Z","updated_at":"2016-11-29T07:58:50Z","due_on":"2016-12-05T00:00:00Z","closed_at":null},"comments":0,"created_at":"2016-11-29T05:37:17Z","updated_at":"2016-11-29T07:59:50Z","closed_at":null,"body":"### Expected\r\n```\r\nFormatException: Input string was not in a correct format.\r\n```\r\n\r\n### Actual\r\nNo run-time error\r\n```\r\ndouble.Parse(\"9anything\") // evaluates to 9\r\n```\r\n\r\n### Steps To Reproduce\r\n\r\n[dotnetfiddle](https://dotnetfiddle.net/BOKUyi)\r\n[Deck](http://deck.net/09c281bc981ac8d070151a8d04d92fcf)\r\n"},"comment":{"url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/comments/263501660","html_url":"https://github.com/bridgedotnet/Bridge/issues/2112#issuecomment-263501660","issue_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/2112","id":263501660,"user":{"login":"geoffreymcgill","id":62210,"avatar_url":"https://avatars.githubusercontent.com/u/62210?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffreymcgill","html_url":"https://github.com/geoffreymcgill","followers_url":"https://api.github.com/users/geoffreymcgill/followers","following_url":"https://api.github.com/users/geoffreymcgill/following{/other_user}","gists_url":"https://api.github.com/users/geoffreymcgill/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffreymcgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffreymcgill/subscriptions","organizations_url":"https://api.github.com/users/geoffreymcgill/orgs","repos_url":"https://api.github.com/users/geoffreymcgill/repos","events_url":"https://api.github.com/users/geoffreymcgill/events{/privacy}","received_events_url":"https://api.github.com/users/geoffreymcgill/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T07:59:50Z","updated_at":"2016-11-29T07:59:50Z","body":"For some explanation, behind the scenes, this function is using the native JavaScript **parseFloat** function.\r\n\r\nhttp://www.w3schools.com/jsref/jsref_parsefloat.asp\r\n\r\n> This function determines if the first character in the specified string is a number. If it is, it parses the string until it reaches the end of the number, and returns the number as a number, not as a string.\r\n\r\nPassing `\"9anything\"` will return `9`. Passing `\"anything9\"` will throw an exception.\r\n\r\nWe need to reproduce the behaviour of the .NET framework, so as you noted, an Exception should be thrown. \r\n\r\nThanks for reporting, and we'll try our best to include this fix in the upcoming 15.5 release."}}
{"actor":{"display_login":"geoffreymcgill"}}