ElectricRCAircraftGuy / fixed_point_math

Fixed point math practice & test code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fixed_point_math

Fixed point math practice & test code

fixed_point_math tutorial

  • A tutorial-like practice code to learn how to do fixed-point math, manual "float"-like prints using integers only, "float"-like integer rounding, and fractional fixed-point math on large integers.

Inspired by: https://stackoverflow.com/questions/10067510/fixed-point-arithmetic-in-c-programming.

If you find this useful, please upvote my answer here: https://stackoverflow.com/a/53936802/4561887. If not, it was valuable learning for me so I'm glad I did it anyway. :)

~Gabriel Staples

About

Fixed point math practice & test code

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 50.0%Language:C 50.0%