Sign in to follow this  
Followers 0
Dag

approximation numbers

5 posts in this topic

hello, i got short question

i'd like to make a script what calculate some formulas

to correct working i need to approximate numbers

i need numbers like 2, 68, 1459 ...

but after division i got 2,14 68,015 1459,821

here is a part of my code

$szybkosc = 1800


Func szybkosc_up  ()
TrayTip("", "Speed UP",1,16)
$szybkosc=$szybkosc-250
EndFunc

;*************************  
Func szybkosc_down  ()
TrayTip("", "Speed Down",1,16)
$szybkosc=$szybkosc+250
EndFunc

;*************************
if $xxxx = 1 then
If $z= 60000/ $szybkosc  Then; i need here a number without ,3265432127 to call macro1 every 1 minute
Call ("macro1")
$z = 1
endif
$z = $z +1
endif

sorry for my english and thx for help

Share this post


Link to post
Share on other sites



Lookup Round in the help file



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Hi,

and maybe have a look at Ceiling and Floor, too.

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

thanks a lot

this is what i need :whistle:

Share this post


Link to post
Share on other sites

Ehm...why do you use Call like that ? When you know the function name at the time you

write the script there's no need to do it like that, but instead you could have just called it

directly : macro1()

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  
Followers 0