#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2004
    Posts
    2
    Rep Power
    0

    converting from int to string?


    have a simple variable that holds a int, I cant figure out a way to convert it to a string. little help? search didnt reveal any solutions
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    103
    Rep Power
    11
    Originally Posted by rabbiz
    have a simple variable that holds a int, I cant figure out a way to convert it to a string. little help? search didnt reveal any solutions
    The same way you make a str into a int...

    str(10) #the number 10 is now treated as a string

    int(10) #the number 10 is now treated as integer

    Forgive my lack of proper terminology,but that's how you do it.
    It is not important if the glass is half full or half empty.What is important,is who has been drinking from MY glass?!?!?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2004
    Posts
    2
    Rep Power
    0
    ah str()

    so simple....

    I spent the last hour looking through two python books and online and couldnt find that :|

    maybe i'll get my project done on time now thanks

IMN logo majestic logo threadwatch logo seochat tools logo