pi and the wallis' product

I'm having trouble getting to pi (3.14159)using the wallis' product (2*2/3*4/3 etc.) I think there is something wrong with the division but I'm not sure how to fix it. Anyway here is what I have. Any help would be appreciated. Thanks!

Code:

`public static void main(String [] args)`

{

int nextDenominator = 1;

int nextNumerator = 2;

int termCount = 1;

float half_pi = 1.0f;

while(termCount < 1000000) {

half_pi *= nextNumerator / nextDenominator;

nextDenominator += 2;

half_pi *= nextNumerator / nextDenominator;

nextNumerator += 2;

if (half_pi * 2 == 3.14159)

break;

else

termCount++;

}

System.out.println("half_pi = " + (half_pi * 2));

System.out.println("termCount = " + termCount);

}