{"id":13741686,"url":"https://github.com/ziglibs/zigfp","last_synced_at":"2025-04-30T23:30:52.220Z","repository":{"id":104374130,"uuid":"540358977","full_name":"ziglibs/zigfp","owner":"ziglibs","description":"Basic fixed point implementation in Zig.","archived":false,"fork":false,"pushed_at":"2024-11-10T10:36:33.000Z","size":8,"stargazers_count":32,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T05:51:15.414Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ziglibs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"MasterQ32"}},"created_at":"2022-09-23T09:01:47.000Z","updated_at":"2025-02-21T06:27:46.000Z","dependencies_parsed_at":"2023-11-12T12:27:30.431Z","dependency_job_id":"29188175-e4a9-4204-8a4a-bd3b15a0c57c","html_url":"https://github.com/ziglibs/zigfp","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/ziglibs%2Fzigfp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglibs%2Fzigfp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglibs%2Fzigfp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglibs%2Fzigfp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziglibs","download_url":"https://codeload.github.com/ziglibs/zigfp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251799360,"owners_count":21645782,"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-08-03T04:01:01.737Z","updated_at":"2025-04-30T23:30:51.977Z","avatar_url":"https://github.com/ziglibs.png","language":"Zig","funding_links":["https://github.com/sponsors/MasterQ32"],"categories":["Libraries"],"sub_categories":[],"readme":"# ZigFP - Fixed Point Arithmetic\n\n```zig\nconst Meter = zigfp.FixedPoint(32, 1000); // millimeter precision meter units, using 32 bits\n\nconst position_1 = Meter.fromFloat(10); // 10m\nconst position_2 = position_1.add(Meter.fromFloat(0.01)); // add 1cm\nconst position_3 = position_2.add(Meter.fromFloat(0.09)); // add 9cm\nconst distance = position_3.sub(position_1);\n\nstd.debug.print(\"Distance = {}\\n\", .{ distance });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziglibs%2Fzigfp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziglibs%2Fzigfp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziglibs%2Fzigfp/lists"}