My question is; is there a functional difference between rounding a double down to an int via roundedInt = (int)unRoundedDouble
and roundedInt = (int)(floor(unRoundedDouble))
?
I've seen the latter used in code, and thought that maybe it's for safety or functional reasons, but can't figure out what would be handled differently.
Also: the rounded Double will not be too large to fit into an int, that's determined beforehand.