{"id":18014826,"url":"https://github.com/zevv/fixedpoint","last_synced_at":"2025-04-04T15:14:19.169Z","repository":{"id":76831667,"uuid":"290249858","full_name":"zevv/fixedpoint","owner":"zevv","description":"Fixed point math library","archived":false,"fork":false,"pushed_at":"2020-08-31T21:30:34.000Z","size":200,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T00:43:39.849Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zevv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-25T15:17:21.000Z","updated_at":"2022-11-11T09:24:47.000Z","dependencies_parsed_at":"2023-03-01T17:30:21.201Z","dependency_job_id":null,"html_url":"https://github.com/zevv/fixedpoint","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zevv%2Ffixedpoint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zevv%2Ffixedpoint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zevv%2Ffixedpoint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zevv%2Ffixedpoint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zevv","download_url":"https://codeload.github.com/zevv/fixedpoint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247198466,"owners_count":20900081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-30T04:11:21.200Z","updated_at":"2025-04-04T15:14:19.147Z","avatar_url":"https://github.com/zevv.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nFixed point math lib, very much work in progress.  Might or might not work.\n\n\n\n## Usage\n\nDefine your custom fixed point types with the `defFixedPoint()` template:\n\n``` Nim\ndefFixedPoint(\u003cname\u003e, \u003cbasetype\u003e, \u003cfracBits\u003e)\n```\n\nThis will create a type with the given name which can be used with some math\noperations. Mixing different fixed point types in operations is someimes\nsupported.\n\nFixed point variables can be initialzed with floating point values at compile\ntime with the generated template `to` concatenated with the name of your type.\n\n\n## Example\n\n``` Nim\ndefFixedPoint(Speed, int8, 2)\ndefFixedPoint(Position, int16, 4)\n\nvar dx = toSpeed(1.25)\nvar x: toPosition(3.0)\n\nx = x + dx\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzevv%2Ffixedpoint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzevv%2Ffixedpoint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzevv%2Ffixedpoint/lists"}