I am trying to write code to monitor percentage progress of file transfers by dividing a running total by the total number of bytes in the file.

For some reason, when I divide the total by the...