Re: Math.Round Question
- From: "Michael C" <nospam@xxxxxxxxxx>
- Date: Fri, 13 Oct 2006 00:13:10 +1000
"Christof Nordiek" <cn@xxxxxxxxx> wrote in message
news:OylISjc7GHA.3280@xxxxxxxxxxxxxxxxxxxxxxx
Hi Michael,
you also could use
Atan2(rise, run)
Cool, that's exactly what I need.
(though it would give different result for negative run).
That simplifies things though. Before I had 2 different checks to see what
quadrant the result was in, now I only need to add 2pi if the result is less
than zero. Thanks for the tip.
I also noticed
Math.DivRem;
Math.IEEERemainder;
Math.BigMul;
Not sure how useful BigMul is but the other 2 could be useful, saves doing a
mod and a divide in some cases.
Michael
.
- References:
- Math.Round Question
- From: Gonza
- Re: Math.Round Question
- From: Michael C
- Re: Math.Round Question
- From: Christof Nordiek
- Math.Round Question
- Prev by Date: Re: Why does main{} always include a parameter string array?
- Next by Date: Re: Decoding strategy
- Previous by thread: Re: Math.Round Question
- Next by thread: Need design for calling a method at regular intervals
- Index(es):