cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Converting a double to a string
Converting a double to a string
Dec 7, 2014 at 4:25pm UTC
closed account (
L074GNh0
)
I'm trying to find a way to accuratley convert a double in the form of a bank account number stored in a file into a string representing the number returned by a file.
Last edited on
Dec 31, 2014 at 1:32am UTC
Dec 7, 2014 at 4:31pm UTC
giblit
(3750)
Why are the bank account numbers stored as doubles and not strings in the first place?
Anyways...You can use a stringstream.
http://www.cplusplus.com/reference/sstream/stringstream/?kw=stringstream
with operator << and >>
Topic archived. No new replies allowed.