Hein88 Posted August 13, 2006 Share Posted August 13, 2006 (edited) Hello, I am working with autoit for a couple of months. But now I came at a point even the help file cannot help me. I also tried to search here but unsuccessful. Problem: output is wrong "1#INF" desired output something like 45.23 or 79.33 (%) $procent = 100 / $aFileList $fProgress = $procent * $c $aFileList = a number like 7900 $c = a number from 1 to 7900 Edited August 13, 2006 by Hein88 Link to comment Share on other sites More sharing options...
Hein88 Posted August 13, 2006 Author Share Posted August 13, 2006 ow lol, stupid typos Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 13, 2006 Share Posted August 13, 2006 Hello, I am working with autoit for a couple of months. But now I came at a point even the help file cannot help me. I also tried to search here but unsuccessful. Problem: output is wrong "1#INF" desired output something like 45.23 or 79.33 (%) $procent = 100 / $aFileList $fProgress = $procent * $c $aFileList = a number like 7900 $c = a number from 1 to 7900 I'm not sure what the question is, but if you meant the output to be "what percentage of $aFileList is $c", then: $Answer = $c / $aFileList * 100 MsgBox(64, "Answer", $c & " is " & $Answer & "% of " & $aFileList) Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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