FInt (FixedInteger) is a lightweight and deterministic C# library for working with numbers using fixed-point arithmetic. With its simple, portable design, FInt is completely dependency-free and seamlessly integrates into any project requiring reliable fixed-point math.
- 📁 Only one file (
FInt.cs) required for your projects! - 🔨 Works with any .NET-compatible project!
- 🚫 Dependency-free with no external libraries required!
- ⚖️ Fast & Immutable struct-based design!
- 🧪 Fully tested with GitHub Actions CI!
| Workflow | Status |
|---|---|
| CI: Build & Test |
Automated tests run on every push and pull request to master.
Get the latest version of FInt.cs here:
ℹ️ Only the
FInt.csfile is needed in the release. GitHub auto-generates.zipand.tar.gzfiles that can be ignored.
Simply copy FInt.cs into your C# project directory and you're good to go!
curl -O https://github.com/AronDavis/FInt/releases/latest/download/FInt.csFInt ten = new FInt(10);
FInt five = new FInt(5);
FInt sum = ten + five;
Console.WriteLine(sum); // Output: 15To run the tests locally:
dotnet testTests are automatically run in GitHub CI. Every push to master must pass tests before a release is created.
The library is fully self-documented within FInt.cs via XML comments.
Contributions are welcome! Fork the repo, make your changes, and open a pull request. All code should be covered by tests and conform to the current coding style.
This project is licensed under the MIT License — see the LICENSE file for details.
Thanks to:
- You, for checking this out!