|
Posted by Doug on 03/06/06 06:03
>ba_fraction is float, and constrained to be between 0 and 1
Well, actually, I've used percentages to keep track of growth rates, or
percentage growths where the percentage can greatly exceed one.
For instance, 2.00 means 200 percent, which means multiply by 200
percent.
Another really good thing about storing 5 percetn as .05 is that the
very first time the programmer/UI dweeb displays it that way, the
programmer dweeb sees it.
At the VERY worst, the end user sees it, and pretty much ANYONE used to
dealing with money, growths, or numbers will report it as a pretty
minor bug, and realize what is going on.
Again, differing points of view arrived at by rational people, but IMO
float is a much better solution.
regards,
doug
[Back to original message]
|