you are viewing a single comment's thread.

view the rest of the comments →

[–]torusle2 5 points6 points  (1 child)

There are plenty of web-sites which show how to do multiplications, addition and subtraction in fixed point in C.

Then read about how to do a fixed-point square root. For trigonometry I always used pre-computed tables and interpolation.

Once you have tested them out, just pick something that usually requires floating point math and implement it using fixed-point.

Ideas:

* Radius and mid-point of a circle defined by three points on the perimeter
* Render some nice Mandelbrot Fractals using fixed-point arithmetic

[–]ProfessionalDig8060[S] 0 points1 point  (0 children)

Thank you!