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:002009-11-03T15:18:10+02:00https://brainmodular.org/forums/viewtopic.php?t=1765&p=10547#p10547Statistics: Posted by amiga909 — 03 Nov 2009, 14:18
]]>
2009-11-02T00:14:26+02:002009-11-02T00:14:26+02:00https://brainmodular.org/forums/viewtopic.php?t=1765&p=10538#p10538Statistics: Posted by oxyredox — 01 Nov 2009, 23:14
]]>2009-11-01T18:28:25+02:002009-11-01T18:28:25+02:00https://brainmodular.org/forums/viewtopic.php?t=1765&p=10531#p10531Statistics: Posted by senso — 01 Nov 2009, 17:28
]]>2009-11-01T16:47:25+02:002009-11-01T16:47:25+02:00https://brainmodular.org/forums/viewtopic.php?t=1765&p=10530#p10530Statistics: Posted by oxyredox — 01 Nov 2009, 15:47
]]>2009-11-01T16:37:00+02:002009-11-01T16:37:00+02:00https://brainmodular.org/forums/viewtopic.php?t=1765&p=10529#p10529In the V5 you'll be able to user Single, Double & Extended. ...and will be 50x faster....
]]>2009-11-01T16:22:53+02:002009-11-01T16:22:53+02:00https://brainmodular.org/forums/viewtopic.php?t=1765&p=10528#p10528I 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:002009-11-01T15:53:41+02:00https://brainmodular.org/forums/viewtopic.php?t=1765&p=10527#p10527n := m DIV p; // integer division
]]>2009-11-01T15:09:04+02:002009-11-01T15:09:04+02:00https://brainmodular.org/forums/viewtopic.php?t=1765&p=10526#p10526 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
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:002009-11-03T15:18:10+02:00https://brainmodular.org/forums/viewtopic.php?t=1765&p=10547#p10547Statistics: Posted by amiga909 — 03 Nov 2009, 14:18
]]>2009-11-02T00:14:26+02:002009-11-02T00:14:26+02:00https://brainmodular.org/forums/viewtopic.php?t=1765&p=10538#p10538Statistics: Posted by oxyredox — 01 Nov 2009, 23:14
]]>2009-11-01T18:28:25+02:002009-11-01T18:28:25+02:00https://brainmodular.org/forums/viewtopic.php?t=1765&p=10531#p10531Statistics: Posted by senso — 01 Nov 2009, 17:28
]]>2009-11-01T16:47:25+02:002009-11-01T16:47:25+02:00https://brainmodular.org/forums/viewtopic.php?t=1765&p=10530#p10530Statistics: Posted by oxyredox — 01 Nov 2009, 15:47
]]>2009-11-01T16:37:00+02:002009-11-01T16:37:00+02:00https://brainmodular.org/forums/viewtopic.php?t=1765&p=10529#p10529In the V5 you'll be able to user Single, Double & Extended. ...and will be 50x faster....
]]>2009-11-01T16:22:53+02:002009-11-01T16:22:53+02:00https://brainmodular.org/forums/viewtopic.php?t=1765&p=10528#p10528I 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:002009-11-01T15:53:41+02:00https://brainmodular.org/forums/viewtopic.php?t=1765&p=10527#p10527n := m DIV p; // integer division
]]>2009-11-01T15:09:04+02:002009-11-01T15:09:04+02:00https://brainmodular.org/forums/viewtopic.php?t=1765&p=10526#p10526 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