Treatment rem

std/ops/num::rem


Generics

◻ N: Rem

Inputs

⇥ a: Stream<N>
⇥ b: Stream<N>

Outputs

↦ rem: Stream<N>


Gives remainder of division from two streams.

Remainder is computed for values passed through a divided by b and send in rem. This treatment is infaillible but may overflow if a _mod_ b is out of bounds for the data type.
⚠️ For integers, this treatment outputs 0 for divisions by 0.
ℹ️ For floating types, this treatment return not-a-number (NaN) for divisions by 0.