delorie.com/archives/browse.cgi | search |
From: | Buddy_Rich <BRich AT mail DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Help /w setting flags in DJGPP V2.03 |
Message-ID: | <0jSiOBNKEJft98TO9fks5mc=53xA@4ax.com> |
X-Newsreader: | Forte Agent 1.6/32.525 |
MIME-Version: | 1.0 |
Lines: | 20 |
Date: | Thu, 10 Feb 2000 03:49:25 GMT |
NNTP-Posting-Host: | 24.226.8.97 |
X-Complaints-To: | abuse AT home DOT net |
X-Trace: | news1.rdc2.on.home.com 950154565 24.226.8.97 (Wed, 09 Feb 2000 19:49:25 PST) |
NNTP-Posting-Date: | Wed, 09 Feb 2000 19:49:25 PST |
Organization: | @Work Internet powered by @Home Network |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
I have the latest version of DJGPP from Delorie.com , v2.03. Anyways I can't set output flags for a file I code file.setf(ios::showpoint, ios::fixed); file.setf(ios::floatfield); file << setprecision(2); With these flags my output shouldn't be in scientific notation and my precision is to 2 decimal places. It compilies cleanly yet my output file still shows scientific notation. I am thinking I might not have installed DJGPP right, since the same code works in Borland at school. Was my seting of flags Borland specific? Any help would be apreciated. Dave
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |