{"id":19118588,"url":"https://github.com/dkosmari/libfxd","last_synced_at":"2026-06-25T09:31:25.966Z","repository":{"id":143651514,"uuid":"616474278","full_name":"dkosmari/libfxd","owner":"dkosmari","description":"libfxd is a fixed-point library for C++20.","archived":false,"fork":false,"pushed_at":"2023-03-26T02:37:32.000Z","size":1575,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-03T07:34:35.320Z","etag":null,"topics":["cplusplus","cplusplus-20","fixed-point","numerics"],"latest_commit_sha":null,"homepage":"https://dkosmari.github.io/libfxd/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dkosmari.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING.APL","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-20T13:11:18.000Z","updated_at":"2023-11-22T05:15:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"406399c4-46a7-4319-b351-cb7571241aed","html_url":"https://github.com/dkosmari/libfxd","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/dkosmari%2Flibfxd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkosmari%2Flibfxd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkosmari%2Flibfxd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkosmari%2Flibfxd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkosmari","download_url":"https://codeload.github.com/dkosmari/libfxd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240171747,"owners_count":19759415,"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":["cplusplus","cplusplus-20","fixed-point","numerics"],"created_at":"2024-11-09T05:07:03.968Z","updated_at":"2026-06-03T09:30:22.063Z","avatar_url":"https://github.com/dkosmari.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"libfxd - a fixed-point library for C++\n======================================\n\nlibfxd is a C++20 headers-only library that implements fixed-point types as a templated\nclass. It's licensed under the Apache Public License 2.0 (see the file `COPYING.APL`).\n\n\nInstallation\n------------\n\nSince it's a headers-only library, no compilation is necessary; the compiler just needs to\nlocate the headers using an option like `-I /path/to/libfxd/include`.\n\nTo install the headers, use the standard Automake procedure:\n\n    ./configure --prefix=/usr\n    make\n    sudo make install\n\n\nSee the `INSTALL` file and/or run `./configure --help` for more details.\n\nIf the source code was checked out from the repository, you may need to first run the\n`bootstrap` script to create the `configure` script.\n\n\nUsage\n-----\n\nSample program:\n\n```cpp\n#include \u003ciostream\u003e\n\n#include \u003cfxd/fxd.hpp\u003e\n\nint main()\n{\n    using F = fxd::fixed\u003c20, 12\u003e;\n\n    F a = 5;\n    F b = 2.5;\n    F c;\n\n    std::cout \u003c\u003c \"Enter a value: \";\n    std::cin \u003e\u003e c;\n\n    F d = (a + b + c) / 3;\n\n    std::cout \u003c\u003c \"Average: \" \u003c\u003c d \u003c\u003c std::endl;\n    std::cout \u003c\u003c \"which has raw value: \" \u003c\u003c d.raw_value \u003c\u003c std::endl;\n}\n```\n\nDocumentation is available in the `doc` directory in .md text files (using Markdown\nsyntax.) If Doxygen is available, it will be automatically built inside `doc/html`.\n\nExamples can be found in the `examples` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkosmari%2Flibfxd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkosmari%2Flibfxd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkosmari%2Flibfxd/lists"}