logo       

Re: QuickQuestion: msg#00281

windows.autoit.user

Subject: Re: QuickQuestion

I think I see what you did..If this is the case wouldn't $argument1
have to be 1015. I can't play with it right now, but let me say that
hopefully when larry is done with the math functions we won't have to
do any of this at the end.

By the way welcome to the AutoIT group. I am assuming you speak
portugese and unfortunately I don't, but I do speak a little spanish
and maybe I can translate some things if you have problems.

red
--- In AutoItList@xxxxxxxxxxxxxxx, Armando Miller
<amillerlistas@xxxx> wrote:
> Red,
>
> I'm new user of AutoIt and not fluent in English (I'm brasilian),
but
> very old in programming. See my comment on your solution down.
>
> I propose another solution:
>
> SetBatchLines,150
> SetEnv,$Argument1,10.15
> SetEnv,$Argument2,1062.5
> GoSub,$Multiply
> setenv,WholeNum,%$Result%
> IfNotInString,$Result,.,Goto,nodec
> StringGetPos,DecPos,$Result,.
> StringLeft,WholeNum,$Result,%DecPos%
> nodec:
> EnvAdd,WholeNum,5
> envdiv,WholeNum,10
> StringRight,DecNum,WholeNum,2
> StringTrimRight,WholeNum,WholeNum,2
> SetEnv,$Result,%WholeNum%.%DecNum%
> MsgBox,4096,Total,%$Result%
> exit
> #Include Multiply.aut
>
> What do you think about it?
>
> --
> [hugs]
> A.Miller
> amillerlistas@xxxx
>
>
> R> StringTrimRight,DecNum,DecNum,1
>
> Imagine decnum=99 at this point... *********************
>
> R> IfGreater,RoundNum,4,EnvAdd,DecNum,1
> R> JoinValue:
> R> SetEnv,$Result,%WholeNum%.%DecNum%
> R> Finish:
> R> MsgBox,4096,Total,%$Result%
> R> exit
> R> #Include Multiply.aut


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Looking for the latest Free IT White Papers?
Visit SearchNetworking.com to access over 500 white papers.
Get instant access at SearchNetworking.com Today
http://us.click.yahoo.com/YyjvfD/OLNGAA/uitMAA/EGnolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
AutoItList-unsubscribe@xxxxxxxxxxxxxxx



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise