logo       

Re: Re: QuickQuestion: msg#00276

windows.autoit.user

Subject: Re: Re: QuickQuestion

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@xxxxxxxxxxxxxxx


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 SearchSecurity.com to access over 500 white papers.
Get instant access at SearchSecurity.com Today
http://us.click.yahoo.com/ayjvfD/QLNGAA/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