I want to ensure that a division of integers is always rounded up if necessary. Is there a better way than this? There is a lot of casting going on. 🙂

(int)Math.Ceiling((double)myInt1 / myInt2)

10 Answers
10

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *