Page 1 of 1
Posted: 01 Nov 2009, 14:09
by oxyredox
hi folks!
I'm working on a patch aiming at some special management for a cicular speaker arrangement. I've searched through the brilliant sripting tutorial but could'nt find any mention of the modulo opeator which is wohever quite common in Pascal (if I remember well).
I can create the function within the script, but I guess my script would be much more efficient if it was a built-in function.
Am I wrong or does it exist?
Posted: 01 Nov 2009, 14:53
by senso
n := m MOD p; // modulo
n := m DIV p; // integer division
senso+++
Posted: 01 Nov 2009, 15:22
by oxyredox
THanx,
I had tried " n := m mod p;" and it could'nt compile...
but now that I think of it, it must have been a problem of type since m was a float...
Other question, I tried a script with a declaration such as
var n : extended;
and the compilator asnwers
extended no such type
where is the problem ?
Posted: 01 Nov 2009, 15:37
by senso
in Usine V4 on the Single type is allowed.
In the V5 you'll be able to user Single, Double & Extended.
...and will be 50x faster....
Posted: 01 Nov 2009, 15:47
by oxyredox
I can't wait!
Posted: 01 Nov 2009, 17:28
by senso
ok, You'll receive a mail to the beta version.
Posted: 01 Nov 2009, 23:14
by oxyredox
groovy!
Posted: 03 Nov 2009, 14:18
by amiga909
any chance to get a mail for the beta version too?
Posted: 03 Nov 2009, 14:20
by amiga909
oxyredox wrote:THanx,
I had tried " n := m mod p;" and it could'nt compile...
but now that I think of it, it must have been a problem of type since m was a float...
Other question, I tried a script with a declaration such as
var n : extended;
and the compilator asnwers
extended no such type
where is the problem ?
u can do type casts, btw.
if i remember correctly its for example:
a := (int) b;