MOD

From STX Wiki
< Programmer Guide‎ | SPU Reference
Revision as of 12:12, 2 May 2011 by 193.171.195.48 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Remainder of quotient of A and B (modulo).

[SPU MOD A B OUT Y]

In Out Description
Anumber, Bnumber Ynumber Y = A % B
Avector, Bnumber Yvector Y[i] = A[i] % B
Avector, Bvector Yvector Y[i] = A[i] % B[i]

with: 0 ≤ i < length of Avector

note: if B (B[i]) equals 0, the output Y (Y[i]) is set to 0.

See also

<SP-atoms>

Navigation menu

Personal tools