Jump to content
Sign in to follow this  

approximation numbers

Recommended Posts

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)

Func szybkosc_down  ()
TrayTip("", "Speed Down",1,16)

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
$z = $z +1

sorry for my english and thx for help

Share this post

Link to post
Share on other sites


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

So long,


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

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  

  • Create New...