In reply to prang:
Yes, you can go between integral and real without a cast, but using an explicit cast shows your intent better.
In reply to prang:
Yes, you can go between integral and real without a cast, but using an explicit cast shows your intent better.