DerekErb:
Any other ideas?
You could make an ipow function:
int ipow(int base, int exp)
{
int result = 1;
for (int i=0; i<exp; i++)
{
result *= base;
}
return result;
}
Krupski:
Here's the solution to the floating point problem: http://www.hobbytent.com/viewtopic.php?f=1&t=158#p29
I wouldn't exactly call it a "problem", more of a "limitation". And that seems like an awful lot of work for something that can be done with a couple lines of code.