YaK:: Simple Fixed-Point Library for C++ [Changes]   [Calendar]   [Search]   [Index]   [PhotoTags]   
[mega_changes]
[photos]

Simple Fixed-Point Library for C++

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.

(unless otherwise marked) Copyright 2002-2014 YakPeople. All rights reserved.
(last modified 2006-03-15)       [Login]
(No back references.)