Here's a quick library for a class "Fixed" that can replace "double" or "float" in C++ code but do arithmetic in fixed point, with 16 bits to the right of the "binary point".
Everything is in one header file. There is another file that tests it.
PLEASE TEST IT CAREFULLY if you try using it! I'm sure my testing is insufficient.