Tuesday, July 21, 2009

argh

why did it take 10+ years for us to realize our round-to-nearest-100th algorithm is busted (on windows)?

Not sure why the original developer cast to 'long' rather than using some modulo division on the floating point number. Stupid windows 32bit long.

And, we can't do the easy solution of 'long long' because of incompatibility with the HP-UX C-runtime on the old-as-dirt patch levels some of our customers refuse to move from.

No comments: