I'm not amazing or great at math but this seems to work: http://ideone.com/dFsODB
#include
#include
float mypow(float value, int pow)
{
float temp = value;
for (int i = 0; i < pow - 1; ++i)
temp *= value;
for (int i = 0; i > pow - 1; --i)
temp /= value;
return temp;
}
int main()
{
std::cout<