Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. 1amnew2c

    proving if a string is an integer, floating point number or neither

    Matt, I'll need to look at your code, but I think I can apply your counter logic to my program...I'll let you know what I get :> if(strspn(str,FLOAT_VALID) == len) { int count = 0; for(int i = 0;i<len;i++) { if(str[i] == '.') count++; }...
  2. 1amnew2c

    proving if a string is an integer, floating point number or neither

    RE: jmnagi (Programmer): I tried using atof and atoi (as well as strtof and strtoi), but I must not understand the correct placement or sequence for these commands because I wasn't getting what I expected for an answer...I actually got errors and couldn't compile it....I also think I could add...
  3. 1amnew2c

    proving if a string is an integer, floating point number or neither

    Please help and resend your replies...my other account got deleted (it was handle iamnew2c) and I wasn't able to read the replies you sent to this question...How do I change my code so that I get 1..2 is not a float, or if there is a + or - sign in the string so that it gives me the number is...

Part and Inventory Search

Back
Top