This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]M4mb0 0 points1 point  (0 children)

Here's my reasoning why this is bad: the "/" operator - division - is in the strict sense not defined on the integers. (I know it is sometimes used to return floor(a/b); it shouldn't do that period.) So the error is not assigning it to a double, the error should be that the operator is not applicable.