From: Rich P on
>>Instead, try "(int)(fileBytesRead / (fileSize / 100));"

I did try an int cast, but for some reason it wasn't working. So I went
with convert.Int32. But then, I didn't do my calculation quite like
yours. I tried

(int)((fileBytesRead / fileSize) * 100);

which - mathematically should be the same as your suggestion. I will
try your implementation. It looks more efficient than convert.ToInt32.



*** Sent via Developersdex ***