Jump to content
Sign in to follow this  
Federalist

Simple Question

Recommended Posts

If I have a variable listed as a percent (such as $rand = 25%) and then I want something to stop , when, for example Array[1] divided by Array[2] = $rand , will AutoIT automatically convert 25% to 0.25?

Share this post


Link to post
Share on other sites

Of course not. The only way of assigning 25% to a variable is making it a string.

Get rid of the character % and work with the number.

Share this post


Link to post
Share on other sites

Of course not. The only way of assigning 25% to a variable is making it a string.

Get rid of the character % and work with the number.

Thanks for your help. I suppose I'll just tag the variable as 0.25 to avoid confusion.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...