Try typing these lines into the beginning of your program and see what happens:
Code:
for (int i = 0; i < 10; i++)
    cout << i/4 << endl;
for (int i = 0; i < 10; i++)
    cout << i/4.0 << endl;