Converting String to Int?

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

dravidiankayne
Chicken Little
Posts: 61
Joined: Mon Mar 29, 2004 3:14 pm

Converting String to Int?

Post by dravidiankayne » Sat Jul 10, 2004 1:19 am

Alright next topic for me:

I want to convert a String to an Int, assuming the string is a numerical value. Anyone know how, or if, this is possible?

Mister Peepers
a lesser mummy
a lesser mummy
Posts: 46
Joined: Mon Apr 19, 2004 8:10 pm

Post by Mister Peepers » Sat Jul 10, 2004 1:28 am

If your using a variable to hold string information. Try ${Int[${MyVar}]} or maybe try type casting but not sure how that works.