Skip to content

Latest commit

 

History

100 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

๐Ÿงฎ 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 Test Status

Automated tests run on every push and pull request to master.


๐Ÿ“ฆ Latest Release

Get the latest version of FInt.cs here:

โ„น๏ธ Only the FInt.cs file is needed in the release. GitHub auto-generates .zip and .tar.gz files 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!

About

64-bit fixed point arithmatic for C# with 6-digit decimal precision. Fast, lightweight, and deterministic. Zero external dependencies.

Topics

Resources

Stars

12 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages