Thread: Reading scientific notation

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    28

    Reading scientific notation

    I have a file that has some numbers in it that are in scientific notation. I need to read them in and then do some calculations with them. How would I go about doing this??

    I've tried reading them as doubles with a %e and a number of other things but just keep getting a very large negative number that is in scientific notation but is not the number I told it to read!

  2. #2
    Registered User
    Join Date
    Dec 2002
    Posts
    28
    I figured it out

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Resetting a ifstream object after reading the whole file
    By Zeeshan in forum C++ Programming
    Replies: 5
    Last Post: 03-31-2008, 08:03 AM
  2. Replies: 2
    Last Post: 01-28-2008, 03:07 AM
  3. help with reading from stream
    By movl0x1 in forum C Programming
    Replies: 7
    Last Post: 05-31-2007, 10:36 PM
  4. Reading numbers with scientific notation
    By Router in forum C Programming
    Replies: 1
    Last Post: 10-31-2006, 11:02 PM
  5. Fun with reading hex
    By dpro in forum C++ Programming
    Replies: 7
    Last Post: 02-17-2006, 06:41 PM