Thread: A Way of Converting Float to string

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User jimboob's Avatar
    Join Date
    Jun 2004
    Posts
    40

    Question A Way of Converting Float to string

    Hi,
    I was wondering if there was a way to copy a float to a string. My current technique (until i figure out a better one) is to load the float into a file from ofstream and then read it back in as a string from ifstream. It's extremely dodgy I know. Any help appreciated.
    Last edited by jimboob; 10-07-2004 at 01:11 AM. Reason: Spelling Errors

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. String Class
    By BKurosawa in forum C++ Programming
    Replies: 117
    Last Post: 08-09-2007, 01:02 AM
  2. String issues
    By The_professor in forum C++ Programming
    Replies: 7
    Last Post: 06-12-2007, 09:11 AM
  3. Moving Average Question
    By GCNDoug in forum C Programming
    Replies: 4
    Last Post: 04-23-2007, 11:05 PM
  4. Another overloading "<<" problem
    By alphaoide in forum C++ Programming
    Replies: 18
    Last Post: 09-30-2003, 10:32 AM
  5. creating class, and linking files
    By JCK in forum C++ Programming
    Replies: 12
    Last Post: 12-08-2002, 02:45 PM