Treatment euclidRem
std/ops/num::euclidRem
Generics
◻ N:
Euclid
Inputs
⇥ a:
Stream<N>
⇥ b:
Stream<N>
Outputs
↦ rem:
Stream<N>
Gives euclidian 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
.