To put it simply, never use floats in loop conditions. Use ints & find some mathematical formula to convert them to float or double inside the loop (Not tested):
#include <iostream>
int main(int argc, char *argv[])
{
//denominator
constint N = 60; //prefer this to using a #define. Alternatively use constexpr in C++11
double DecimalFraction = 0.0;
std::cout << "0.0 to 1.0 in 1/" << N << " steps:\n\n";
for (int i = 0; i < N; ++i) { // always uses braces even when there is 1 statement
DecimalFraction = static_cast<double>(i) / N;
std::cout << i << " divided by " << N << " is " << DecimalFraction << "\n";
}
std::cout << std::endl; // flushes the buffer
system("PAUSE"); // read the article about why this isn't good
return 0;
}