ArrayArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2009-11-03T15:20:35+02:00 https://brainmodular.org/forums/app.php/feed/topic/1765 2009-11-03T15:20:35+02:00 2009-11-03T15:20:35+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10548#p10548 <![CDATA[modulo in scripting language]]>
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;

Statistics: Posted by amiga909 — 03 Nov 2009, 14:20


]]>
2009-11-03T15:18:10+02:00 2009-11-03T15:18:10+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10547#p10547 <![CDATA[modulo in scripting language]]> Statistics: Posted by amiga909 — 03 Nov 2009, 14:18


]]>
2009-11-02T00:14:26+02:00 2009-11-02T00:14:26+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10538#p10538 <![CDATA[modulo in scripting language]]> Statistics: Posted by oxyredox — 01 Nov 2009, 23:14


]]>
2009-11-01T18:28:25+02:00 2009-11-01T18:28:25+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10531#p10531 <![CDATA[modulo in scripting language]]> Statistics: Posted by senso — 01 Nov 2009, 17:28


]]>
2009-11-01T16:47:25+02:00 2009-11-01T16:47:25+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10530#p10530 <![CDATA[modulo in scripting language]]> Statistics: Posted by oxyredox — 01 Nov 2009, 15:47


]]>
2009-11-01T16:37:00+02:00 2009-11-01T16:37:00+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10529#p10529 <![CDATA[modulo in scripting language]]> In the V5 you'll be able to user Single, Double & Extended.
...and will be 50x faster....

Statistics: Posted by senso — 01 Nov 2009, 15:37


]]>
2009-11-01T16:22:53+02:00 2009-11-01T16:22:53+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10528#p10528 <![CDATA[modulo in scripting language]]> 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 ?

Statistics: Posted by oxyredox — 01 Nov 2009, 15:22


]]>
2009-11-01T15:53:41+02:00 2009-11-01T15:53:41+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10527#p10527 <![CDATA[modulo in scripting language]]> n := m DIV p; // integer division

senso+++

Statistics: Posted by senso — 01 Nov 2009, 14:53


]]>
2009-11-01T15:09:04+02:00 2009-11-01T15:09:04+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10526#p10526 <![CDATA[modulo in scripting language]]>
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?

Statistics: Posted by oxyredox — 01 Nov 2009, 14:09


]]>
BrainModular BrainModular Users Forum 2009-11-03T15:20:35+02:00 https://brainmodular.org/forums/app.php/feed/topic/1765 2009-11-03T15:20:35+02:00 2009-11-03T15:20:35+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10548#p10548 <![CDATA[modulo in scripting language]]>
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;

Statistics: Posted by amiga909 — 03 Nov 2009, 14:20


]]>
2009-11-03T15:18:10+02:00 2009-11-03T15:18:10+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10547#p10547 <![CDATA[modulo in scripting language]]> Statistics: Posted by amiga909 — 03 Nov 2009, 14:18


]]>
2009-11-02T00:14:26+02:00 2009-11-02T00:14:26+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10538#p10538 <![CDATA[modulo in scripting language]]> Statistics: Posted by oxyredox — 01 Nov 2009, 23:14


]]>
2009-11-01T18:28:25+02:00 2009-11-01T18:28:25+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10531#p10531 <![CDATA[modulo in scripting language]]> Statistics: Posted by senso — 01 Nov 2009, 17:28


]]>
2009-11-01T16:47:25+02:00 2009-11-01T16:47:25+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10530#p10530 <![CDATA[modulo in scripting language]]> Statistics: Posted by oxyredox — 01 Nov 2009, 15:47


]]>
2009-11-01T16:37:00+02:00 2009-11-01T16:37:00+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10529#p10529 <![CDATA[modulo in scripting language]]> In the V5 you'll be able to user Single, Double & Extended.
...and will be 50x faster....

Statistics: Posted by senso — 01 Nov 2009, 15:37


]]>
2009-11-01T16:22:53+02:00 2009-11-01T16:22:53+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10528#p10528 <![CDATA[modulo in scripting language]]> 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 ?

Statistics: Posted by oxyredox — 01 Nov 2009, 15:22


]]>
2009-11-01T15:53:41+02:00 2009-11-01T15:53:41+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10527#p10527 <![CDATA[modulo in scripting language]]> n := m DIV p; // integer division

senso+++

Statistics: Posted by senso — 01 Nov 2009, 14:53


]]>
2009-11-01T15:09:04+02:00 2009-11-01T15:09:04+02:00 https://brainmodular.org/forums/viewtopic.php?t=1765&p=10526#p10526 <![CDATA[modulo in scripting language]]>
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?

Statistics: Posted by oxyredox — 01 Nov 2009, 14:09


]]>