Federalist Posted December 19, 2007 Posted December 19, 2007 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?
Nahuel Posted December 19, 2007 Posted December 19, 2007 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.
Federalist Posted December 19, 2007 Author Posted December 19, 2007 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now