{"action":"created","issue":{"url":"https://api.github.com/repos/jeremyong/Selene/issues/91","labels_url":"https://api.github.com/repos/jeremyong/Selene/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/jeremyong/Selene/issues/91/comments","events_url":"https://api.github.com/repos/jeremyong/Selene/issues/91/events","html_url":"https://github.com/jeremyong/Selene/issues/91","id":104581308,"number":91,"title":"Float not supported","user":{"login":"bagobor","id":708235,"avatar_url":"https://avatars.githubusercontent.com/u/708235?v=3","gravatar_id":"","url":"https://api.github.com/users/bagobor","html_url":"https://github.com/bagobor","followers_url":"https://api.github.com/users/bagobor/followers","following_url":"https://api.github.com/users/bagobor/following{/other_user}","gists_url":"https://api.github.com/users/bagobor/gists{/gist_id}","starred_url":"https://api.github.com/users/bagobor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagobor/subscriptions","organizations_url":"https://api.github.com/users/bagobor/orgs","repos_url":"https://api.github.com/users/bagobor/repos","events_url":"https://api.github.com/users/bagobor/events{/privacy}","received_events_url":"https://api.github.com/users/bagobor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-02T22:04:05Z","updated_at":"2015-09-03T15:25:37Z","closed_at":"2015-09-03T15:25:37Z","body":"**Sample code:**\r\n```c++\r\nextern \"C\"\r\n{\r\n#include \"lua.h\"\r\n#include \"lauxlib.h\"\r\n#include \"lualib.h\"\r\n}\r\n\r\nstruct SimpleVec2\r\n{\r\n\tfloat x, y;\r\n};\r\n\r\n#include <Selene/selene.h>\r\n\r\nint main()\r\n{\r\n\tsel::State state{ true };\r\n\tstate[\"vec2\"].SetClass<SimpleVec2>(\"x\", &SimpleVec2::x);\r\n\t\r\n  return 0;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/jeremyong/Selene/issues/comments/137484984","html_url":"https://github.com/jeremyong/Selene/issues/91#issuecomment-137484984","issue_url":"https://api.github.com/repos/jeremyong/Selene/issues/91","id":137484984,"user":{"login":"jeremyong","id":250149,"avatar_url":"https://avatars.githubusercontent.com/u/250149?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyong","html_url":"https://github.com/jeremyong","followers_url":"https://api.github.com/users/jeremyong/followers","following_url":"https://api.github.com/users/jeremyong/following{/other_user}","gists_url":"https://api.github.com/users/jeremyong/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyong/subscriptions","organizations_url":"https://api.github.com/users/jeremyong/orgs","repos_url":"https://api.github.com/users/jeremyong/repos","events_url":"https://api.github.com/users/jeremyong/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyong/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T15:25:37Z","updated_at":"2015-09-03T15:25:37Z","body":"Lua internally doesn't have more than one floating point representation. If you are ok with float precision, either cast it yourself via an accessor or change the internal representation of lua_Number. The library shouldn't implicitly lose precision for the user IMO."}}