Jump to content
Sign in to follow this  
Hein88

Question Mathematiqs.

Recommended Posts

Hein88

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

Share this post


Link to post
Share on other sites
Hein88

ow lol, stupid typos

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
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
Sign in to follow this  

×