2009-11-15, 11:21 AM
Kortestanov Wrote:I know how to do that, but I'd rather leave them like that because the result of "int * 0.11111111111" is a double fraction, but the result of "int / 9" is a rounded integer and re-casting my integers to double after every calculation is annoying (it might has something to do with me casting everything to int32, but is still related to what I said above).These are the formulas for W.Def\M.Def (not avoidability). I didn't post them because they are too complicated, you can look at the source code if you want.
That's one thing, but the other thing is that it might give another result than multiplying by 0.11111111111 (Obviously depends on the implementation).
For me, "int / 9." is easier and would most likely include such a small error-margin that it wouldn't be noticeable.

