<< moderator edit: split thread (original) >>
I must have a bad version of Microsofts C++ compiler. When I try the rounding it doesn't work. For example.
float salesTotal =6.010002; salesTotal = (((int)((salesTotal*100)+.5))/100.0); // I realize I have plenty of parentheses.
results in a value of 6.010002 stored in the variable.
I have an academic version of Visual Studio .NET.