Jump to content

Question Mathematiqs.


 Share

Recommended Posts

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 by Hein88
Link to comment
Share on other sites

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)

:whistle:

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

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
 Share

  • Recently Browsing   0 members

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