Federalist Posted December 19, 2007 Share 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? Link to comment Share on other sites More sharing options...
Nahuel Posted December 19, 2007 Share 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. Link to comment Share on other sites More sharing options...
Federalist Posted December 19, 2007 Author Share 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. Link to comment Share on other sites More sharing options...
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