Quote Originally Posted by Darrel Taylor View Post
Let me open a whole new "Can of Worms", and suggest that you use the Microchip Floating Point Math module.
http://www.melabs.com/resources/fp.htm

It'll handle your numbers.
It takes a little getting used to, but it works.
<br>
The example alone takes almost 7k of code space, precisely 6898 byte used.
There is really no room for the real application for it. Copying that example to my code brings up familiar errors telling that we go over the limit with about 3k. Obviously the FP-library is too big.... and easy to estimate that I would need slightly more functions than the example has.

"What goes up comes also down, always..."

So, if it would be possible to split the formula to smaller calculate one part at time or utilizing R0,R2 or something....

Isn't possible?