Thread: Converting a string to double...

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    7

    Converting a string to double...

    I know this topic has probably been discussed many times... and search didn't turn up anything useful...

    I am trying to add up amounts sourced by a data file. So the string would have to be converted to a double and added to a total double.

    Is this safe to do in C? Will i loose precision? Am I approaching this challenge correctly?

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    strtod ?


    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Functions, have errors...NEED HELP FAST
    By alkamenes in forum C++ Programming
    Replies: 6
    Last Post: 11-02-2009, 03:00 PM
  2. Unable to compare string with 'getter' returned string.
    By Swerve in forum C++ Programming
    Replies: 2
    Last Post: 10-30-2009, 05:56 PM
  3. newbie needs help with code
    By compudude86 in forum C Programming
    Replies: 6
    Last Post: 07-23-2006, 08:54 PM
  4. Something is wrong with this menu...
    By DarkViper in forum Windows Programming
    Replies: 2
    Last Post: 12-14-2002, 11:06 PM
  5. converting string to double
    By Unregistered in forum C++ Programming
    Replies: 8
    Last Post: 07-17-2002, 04:10 PM

Tags for this Thread