Re: Math.Round Question

Tech-Archive recommends: Speed Up your PC by fixing your registry



"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


.