Jump to content

Help


Rai11991
 Share

You are about to reply to a thread that has been inactive for 4669 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I need to be able to gather an input from a string and make it into an integer.  So lets say someone is told to pick and number (0-100 for an example) so they choose 5.  I need to be able to take that input and make it into an integer to be used later in the script.  I've been looking around for some time now.  I remember doing this a while back, but can't remember the process.

I'm sure I over looked something somewhere or just haven't looked enough, or this may seem like a noob request.  I just want to know if it's possible to get inputs from strings and use them.  

Link to comment
Share on other sites

whoops I was thrown by the extra integer cast on the first line and misread it...

but yeah, there are several ways it can break (also on Hex and C99 float encoding), but it's good for simple stuff.... handling all cases is a pain and not worth if most of the time.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4669 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...