converting strings to ints

This is a discussion on converting strings to ints within the C++ Programming forums, part of the General Programming Boards category; Hey! Does anyone know how to convert strings to doubles in c++? Ive tried searching the forum but found no ...

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    7

    converting strings to ints

    Hey!

    Does anyone know how to convert strings to doubles in c++?
    Ive tried searching the forum but found no previous questions relating to this.

    Cheers guys

  2. #2
    Unregistered
    Guest
    atof() and then cast float to double.

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    7
    Thanks mate!

  4. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    I think atof() returns a double.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to handle ints and strings when writing to file
    By agentsmith in forum C Programming
    Replies: 11
    Last Post: 04-23-2008, 04:44 AM
  2. converting a vector of strings into an array.
    By LightsOut06 in forum C++ Programming
    Replies: 2
    Last Post: 10-27-2005, 07:14 PM
  3. converting c style strings to c++ strings
    By fbplayr78 in forum C++ Programming
    Replies: 6
    Last Post: 04-14-2003, 03:13 AM
  4. Strings into Ints
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 06-09-2002, 04:07 PM
  5. Converting strings to ints
    By Unregistered in forum C++ Programming
    Replies: 7
    Last Post: 04-25-2002, 02:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21