On Wed, 30 Sep 2009, Guy Sotomayor wrote:
<rant>
Why do people always seem to want to have elapsed time as a floating
point number?
</rant>
Because some of the CRAP that they learned in school makes them think that
truncation (or even rounding) to an int value "isn't the RIGHT answer".
In the XenoSoft Sales Tax Genie, I wrote a very small TSR that calculated
the sales tax of every California jurisdiction (based on ZIPCODE), rounded
appropriately to an "exact" cents amount. I NEVER used floating point.
I do not HAVE any "fraction of a cent" coins!
--
Grumpy Ol' Fred cisin at
xenosoft.com