Jump to content

Recommended Posts

Posted

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?

Posted

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.

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...