Integer problem!

Discussion in 'Programming' started by ZipItCraft, May 18, 2015.

  1. konsolas


  2. Well, it does not throw error anymore, but when parsing string to integer, if the number is 100, it just outputs 1, or if number is 700 it outputs only 7. Do you know what could be issue here?
  3. Thanks, I replaced 1-9, with 0-9. It works! :)
  4. One more thing, what if I wanted to it with letters?
  5. konsolas


    How would you parse letters to an integer? If you want to know how to strip everything apart from letters, learn Regex somewhere like
  6. I figured everything out, thanks for your help though. Appreciate it! :)