Jump to content
Sign in to follow this  
Tankbuster

opposite of str?

Recommended Posts

Guys,

As part of my ongoing battle with getVariable, I'm curious to know...

str takes a numeric and turns it into a string.. is there a function that does the opposite.. takes a string turns it (where possible) into a numeric?

Share this post


Link to post
Share on other sites

I'd seen toArray, but not parseNumber. Many thanks to both. :)

Share this post


Link to post
Share on other sites

I use "call compile _str" to convert things back from a string to what they were originally. So you can probably skip the step of having to pull your number back out of the resulting array you end up with while using toArray.

You will likely need the format command as well, depending on what you're doing.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×