Changed back to ofs.setf(ios::fixed, ios::floatfield);