How To?

Hey if you keep getting alphanumeric data as outputs instead of numerical data then what could the issue be?

here is an example of:

$1.2e+003 instead of $1,167.15?
Post the code and we'll see what is the problem.
By default floating point numbers are output in scientific notation, which is what you are seeing. You need to set the precision and # of decimal places.

If using iostreams, look up setprecision().

Topic archived. No new replies allowed.