Originally posted by master5001
[B]I've got good news and bad news. The good news is that pow is correct. The bad is of course that the errors seem to be occurring in printf. The best way to get accurate results would be to use doubles as much as you can. Like most functions using integers for large floating point operations tends to leave you with inaccurate results. You could write your own pow routine for ints though:

How then do I get around the problem of the next step, in which I mod the resultant value and use that to write my character? When I use a double I cannot compile due to inproper binary operators around the % symbol for that line of code? Would casting the result of power to int for that mathematical equation still skew my results?

And thanks, I will go play with this while I wait for more input..thank you much...

CK