Posted by Erik on September 07, 2001 at 15:59:19:
In Reply to: Project 2 Updates posted by William D McQuain on September 07, 2001 at 10:37:29:
I'm having troubles with the "setprecision(2)" command when outputting the data to the log file. It only allows me to display 2 significant figures, so that with the first example the aspect ratio comes out as "2.3" instead of the correct "2.27". Changing the 2 to a 3 in setprecision(), gives the correct answer for the first example (2.27), but gives gives the wrong answer of 0.592 instead of the correct answer of 0.59.
Any suggestions or corrections are welcome.
: I've reposted a corrected specification for Project 2. If you worked off an earlier posting, I suggest you just restart with this one.
: The output samples have also been reposted. See the Announcements page.
Post a Followup