MOD

From STX Wiki
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