FInt
64-bit fixed point arithmatic for C# with 6-digit decimal precision. Fast, lightweight, and deterministic. Zero external dependencies.
Install / Use
/learn @AronDavis/FIntREADME
🧮 FInt - FixedInteger for C#
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.
🚀 Features
- 📁 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!
✅ Build & Test Status
| Workflow | Status |
|----------|--------|
| CI: Build & Test |
Automated tests run on every push and pull request to master.
📦 Latest Release
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.
🛠️ Usage
Installation
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.cs
Usage Example
FInt ten = new FInt(10);
FInt five = new FInt(5);
FInt sum = ten + five;
Console.WriteLine(sum); // Output: 15
🧪 Running Tests
To run the tests locally:
dotnet test
Tests are automatically run in GitHub CI. Every push to master must pass tests before a release is created.
📚 Documentation
The library is fully self-documented within FInt.cs via XML comments.
🤝 Contributing
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.
📄 License
This project is licensed under the MIT License — see the LICENSE file for details.
🌟 Acknowledgements
Thanks to:
- You, for checking this out!
Related Skills
node-connect
350.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
