I have a program:
int main() { float f = 0.0f; int i; for (i = 0 ; i < 10 ; i++) f = f + 0.1f;
This is equivelent to adding 0.33 together 3 times (0.99) and wondering why it is not equal to 1.0.
You may wish to read What Every Programmer Should Know About Floating Point Arithmetic