Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

asik/FixedMath.Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b2adac7 · Apr 10, 2018

History

34 Commits
Apr 5, 2018
Apr 5, 2018
Feb 21, 2017
Feb 21, 2017
Mar 11, 2018
Apr 10, 2018

Repository files navigation

This library implements "Fix64", a 64 bit fixed point 31.32 numeric type and transcendent operations on it (square root, trig, etc). It is well covered by unit tests. However, it is still missing some operations; in particular, Tangent is not well tested yet.

In the unit tests you'll find implementations for Int32-based (Q15.16) and Byte-based (Q3.4) numeric types. These were used for exploration of boundary conditions etc., but I'm keeping the code there only for reference.

This project started as a port of libfixmath (http://code.google.com/p/libfixmath/).

Note that the type requires explicit casts to convert to floating point and this is intentional, the difference between fixed point and floating point math is as important as the one between floating point and integral math.

About

Fixed point math C# library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages