Thread: Question.

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    57

    Post Question.

    If I'm converting the number

    1.0e67L

    from a string to a double

    what should the function finds the e and L ?

    I have it checking a character set and as long as they are all in there it is supposed to perform the rest of the function but it can't ever find the '.' 'e' or 'L' when it runs through it. Any ideas? (i can post the code i have if neccessary)

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    atof() should work fine for you, it will stop at the 'L'.

    gg

  3. #3
    Programming Sex-God Polymorphic OOP's Avatar
    Join Date
    Nov 2002
    Posts
    1,078
    I <3 you Krush
    Last edited by Polymorphic OOP; 04-10-2003 at 12:39 AM.

  4. #4
    Registered User
    Join Date
    Oct 2002
    Posts
    57
    No poly is being a jackass. I wanted to know what the function is supposed to do when it encounters those symbols as it's reading them. And I can't use standard functions. I just need to know what they are supposed to do to it.

  5. #5
    cereal killer dP munky's Avatar
    Join Date
    Nov 2002
    Posts
    655
    are you gunna post code er...?
    guns dont kill people, abortion clinics kill people.

  6. #6
    Registered User
    Join Date
    Oct 2002
    Posts
    57
    munky you do know the word is pseudo with a 'e' i don't know what the hell 'psudo' is.

  7. #7
    cereal killer dP munky's Avatar
    Join Date
    Nov 2002
    Posts
    655
    OMG wow youre a ..........ing genius, oh wait, if youre so damn smart do your own homework....ass

    edit: Krush you do know the word is crush with a 'c' i don't know what the hell 'krush' is......dick
    Last edited by dP munky; 04-10-2003 at 11:50 AM.
    guns dont kill people, abortion clinics kill people.

  8. #8
    Registered User
    Join Date
    Jan 2003
    Posts
    648
    Originally posted by Krush
    munky you do know the word is pseudo with a 'e' i don't know what the hell 'psudo' is.
    That was so uncalled for... If you like being a deucebag then don't expect help from us....

  9. #9
    Registered User
    Join Date
    Oct 2002
    Posts
    57
    Uncalled for? They're my roommates. I see no reason in them replying being smartanus' when I was simply asking one question.

  10. #10
    cereal killer dP munky's Avatar
    Join Date
    Nov 2002
    Posts
    655
    "oh help me help me, i cant get my code to work

    its supposed to do this....

    THANKS
    -krush"

    no code, no nothin, how can we help if we cant see what youre doing wrong?
    guns dont kill people, abortion clinics kill people.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM