{"action":"created","issue":{"url":"https://api.github.com/repos/miloyip/rapidjson/issues/403","labels_url":"https://api.github.com/repos/miloyip/rapidjson/issues/403/labels{/name}","comments_url":"https://api.github.com/repos/miloyip/rapidjson/issues/403/comments","events_url":"https://api.github.com/repos/miloyip/rapidjson/issues/403/events","html_url":"https://github.com/miloyip/rapidjson/issues/403","id":99420039,"number":403,"title":"GenericReader drops decimal digits","user":{"login":"dasto","id":274323,"avatar_url":"https://avatars.githubusercontent.com/u/274323?v=3","gravatar_id":"","url":"https://api.github.com/users/dasto","html_url":"https://github.com/dasto","followers_url":"https://api.github.com/users/dasto/followers","following_url":"https://api.github.com/users/dasto/following{/other_user}","gists_url":"https://api.github.com/users/dasto/gists{/gist_id}","starred_url":"https://api.github.com/users/dasto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasto/subscriptions","organizations_url":"https://api.github.com/users/dasto/orgs","repos_url":"https://api.github.com/users/dasto/repos","events_url":"https://api.github.com/users/dasto/events{/privacy}","received_events_url":"https://api.github.com/users/dasto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-06T11:57:13Z","updated_at":"2015-08-06T17:11:49Z","closed_at":null,"body":"I use a generic Reader for parsing a StringStream on Win 8.1, VS2013 Community. Some of the values passed to the Double() method of my handler aren't correct:\r\n\r\n24.8984375 -> 24.8984\r\n171.8984375 -> 171.8984\r\n\r\nI already tried to use the \"kParseFullPrecisionFlag\" - no difference. Is this already related to resolution of doubles or is this a possible bug?"},"comment":{"url":"https://api.github.com/repos/miloyip/rapidjson/issues/comments/128447298","html_url":"https://github.com/miloyip/rapidjson/issues/403#issuecomment-128447298","issue_url":"https://api.github.com/repos/miloyip/rapidjson/issues/403","id":128447298,"user":{"login":"pah","id":177333,"avatar_url":"https://avatars.githubusercontent.com/u/177333?v=3","gravatar_id":"","url":"https://api.github.com/users/pah","html_url":"https://github.com/pah","followers_url":"https://api.github.com/users/pah/followers","following_url":"https://api.github.com/users/pah/following{/other_user}","gists_url":"https://api.github.com/users/pah/gists{/gist_id}","starred_url":"https://api.github.com/users/pah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pah/subscriptions","organizations_url":"https://api.github.com/users/pah/orgs","repos_url":"https://api.github.com/users/pah/repos","events_url":"https://api.github.com/users/pah/events{/privacy}","received_events_url":"https://api.github.com/users/pah/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T17:11:49Z","updated_at":"2015-08-06T17:11:49Z","body":"How did you print out the values in your handler?  MSVC limits the output precision by default.\r\nYou can print the full value by using a `rapidjson::Writer` instead:\r\n````cpp\r\n    using namespace rapidjson;\r\n    Document d;\r\n    d.Parse<kParseFullPrecisionFlag>(\"24.8984375\");\r\n    // ...\r\n\r\n    StringBuffer buffer;\r\n    Writer<StringBuffer> writer(buffer);\r\n    writer.Double(d.GetDouble());\r\n\r\n    std::cout << \"std::cout: \" << d << \"\\n\"\r\n              << \"rapidjson: \" << buffer.GetString() << std::endl;\r\n````\r\nhth, \r\nPhilipp"}}