Thanks Paul
To answer your question, the number can be very small... less than 10. And there are actually two constants that I'll be dividing by - one is 12000 (120*100), the other is 600 (6*100).
I was giving the abbreviated story about what I am up to. What I'm actually calculating is a Taylor series expression for sin(theta). I'll write it out for the benefit of anyone else that happens upon this post:
sin(x)=theta -(theta^3)/3!+(theta^5)/5!...... with theta in radians
They can also check out this link that I have been refering to:
http://www.picbasic.co.uk/forum/show...ghlight=arcsin
Of course, to calculate to any degree of accuracy, I have to scale numbers up (to get some significant figures) and then scale the final result down appropriately. My goal is two sig figs past the decimal point, with the last being rounded to either 0 or 5. Since that theta^5 is in there, the numbers get really difficult... especially when they are scaled up to begin with!
Since 3!=6, and I'm playing around with scaling, you can see where the 600 comes from. Same story for the 12000.
Anyhow, thanks so much... this will clean up my code nicely while improving accuracy.
Jason
Bookmarks