Because (double)(11/3) is 3.0.  You probably want ((double)11/3).

On Wed, 21 Mar 2007 11:39:49 +0000, Paul Cowan <[EMAIL PROTECTED]> wrote:

>Hi all,
>
>Can anyone explain why the following does not return 4.0
>
>Math.Ceiling((double)(11 / 3));
>
>It returns 3.0.

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to