Re: Why int remainder=(int)(Math.DivRem(MaxValue, 2, out remainder)) is 5 where int MaxValue = 10!!!;
- From: Ben Schwehn <ben@xxxxxxxxxxx>
- Date: Thu, 20 Sep 2007 02:14:19 -0700
int remainder=(int)(Math.DivRem(MaxValue, 2, out remainder));
the out parameter is overwritten by the return value.
Perhaps want you want to do is:
int remainder;
int result = (int)(Math.DivRem(MaxValue, 2, out remainder));
ben
.
- References:
- Why int remainder=(int)(Math.DivRem(MaxValue, 2, out remainder)) is 5 where int MaxValue = 10!!!;
- From: Alexander Gorbylev
- Why int remainder=(int)(Math.DivRem(MaxValue, 2, out remainder)) is 5 where int MaxValue = 10!!!;
- Prev by Date: Re: POP3 Locking up computer
- Next by Date: Re: DateTime.Now Refresh Interval too granular!?
- Previous by thread: Re: Why int remainder=(int)(Math.DivRem(MaxValue, 2, out remainder)) is 5 where int MaxValue = 10!!!;
- Next by thread: Re: Why int remainder=(int)(Math.DivRem(MaxValue, 2, out remainder)) is 5 where int MaxValue = 10!!!;
- Index(es):