We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'div' in the language means integer division: both operands are truncated to integers, and then the quotient is also truncated.
In the server, (a div: b) == ((a / b) + 1), which makes no logical sense whatsoever.
(a div: b) == ((a / b) + 1)
a = { var t = Impulse.kr(2), c = PulseCount.kr(t), x = (c - 5) * 0.25; [x, x div: 1].poll(t); FreeSelf.kr(c >= 10); DC.ar(0); }.play;
Reasonable to expect a div: b in the server to be compatible with that in the language.
The text was updated successfully, but these errors were encountered:
Correction: it seems actually to be (a div: b) == ((a / b) + b)
(a div: b) == ((a / b) + b)
Sorry, something went wrong.
apparently, integer division is not implemented at all, falling back to the default binary operator, the addition.
747395f
No branches or pull requests
'div' in the language means integer division: both operands are truncated to integers, and then the quotient is also truncated.
In the server,
(a div: b) == ((a / b) + 1)
, which makes no logical sense whatsoever.Reasonable to expect a div: b in the server to be compatible with that in the language.
The text was updated successfully, but these errors were encountered: