Hi, when i was running my excutable file, i got this error
here is the power function i used to calculate the varible:pow: OVERFLOW error
any ideas?Code:int i; for(i = 1; i <= approximation; i++){ pi += pow(12, 0.5)*pow(-1, i+1)/((2*i - 1)*(pow(3, i-1))); }
the error only occur when i pass a large number (over 1000) for approximation, and it runs for a few seconds and in the end it still will print out the correct answer, im just wondering should this be a big deal?