{"action":"created","issue":{"url":"https://api.github.com/repos/jacobdufault/fullserializer/issues/33","labels_url":"https://api.github.com/repos/jacobdufault/fullserializer/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/jacobdufault/fullserializer/issues/33/comments","events_url":"https://api.github.com/repos/jacobdufault/fullserializer/issues/33/events","html_url":"https://github.com/jacobdufault/fullserializer/issues/33","id":68350162,"number":33,"title":"Serialize float without convertion to double","user":{"login":"dippnsk","id":5928869,"avatar_url":"https://avatars.githubusercontent.com/u/5928869?v=3","gravatar_id":"","url":"https://api.github.com/users/dippnsk","html_url":"https://github.com/dippnsk","followers_url":"https://api.github.com/users/dippnsk/followers","following_url":"https://api.github.com/users/dippnsk/following{/other_user}","gists_url":"https://api.github.com/users/dippnsk/gists{/gist_id}","starred_url":"https://api.github.com/users/dippnsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dippnsk/subscriptions","organizations_url":"https://api.github.com/users/dippnsk/orgs","repos_url":"https://api.github.com/users/dippnsk/repos","events_url":"https://api.github.com/users/dippnsk/events{/privacy}","received_events_url":"https://api.github.com/users/dippnsk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-14T11:59:34Z","updated_at":"2015-04-15T05:25:45Z","closed_at":null,"body":"When serializing float values, fsPrimitiveConverter converts it to double. This adds some very small floating point jitter which leads to saving values using much more space in Json:\r\n0.800000011920929\r\n0.600000023841858\r\n0.300000011920929\r\ninstead of normal 0.8, 0.6, etc.\r\n\r\nWhen deserializing this value to float, all this noise won't fit to float and it's actually useless.\r\n\r\nYou can try it out yorself and see different result with simple code:\r\n```\r\nDebug.Log(0.1f); // prints 0.1\r\nDebug.Log((double)0.1f); // prints 0.100000001490116\r\nDebug.Log(0.1); // prints 0.1\r\n```\r\n\r\nIf serializable type is float, convertion to double must not be preformed."},"comment":{"url":"https://api.github.com/repos/jacobdufault/fullserializer/issues/comments/93195896","html_url":"https://github.com/jacobdufault/fullserializer/issues/33#issuecomment-93195896","issue_url":"https://api.github.com/repos/jacobdufault/fullserializer/issues/33","id":93195896,"user":{"login":"jacobdufault","id":356714,"avatar_url":"https://avatars.githubusercontent.com/u/356714?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobdufault","html_url":"https://github.com/jacobdufault","followers_url":"https://api.github.com/users/jacobdufault/followers","following_url":"https://api.github.com/users/jacobdufault/following{/other_user}","gists_url":"https://api.github.com/users/jacobdufault/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobdufault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobdufault/subscriptions","organizations_url":"https://api.github.com/users/jacobdufault/orgs","repos_url":"https://api.github.com/users/jacobdufault/repos","events_url":"https://api.github.com/users/jacobdufault/events{/privacy}","received_events_url":"https://api.github.com/users/jacobdufault/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T05:25:44Z","updated_at":"2015-04-15T05:25:44Z","body":"Okay, I'll try to get this fixed - but it may be a little while before I can get to it. The only solution I can think of right now is a bit hacky."}}