Short version: Why don\'t I have to coerce 60, and int, into a double, so that I can use division with another double if I DO care about the fractional part?
Long ve
You can't divide a double by an integer, so the compiler will cast the integer to a double.
So, the expressions (double)durationinseconds / 60
and (double)durationinseconds / 60.0
will result in identical code being created.
I prefer using 60.0
in this case just to make it more visible what the code is actually doing.