Function |euclid_rem

std/ops/num::|euclid_rem


Usage

|euclid_rem<N>(a, b)

Generics

◻ N: Euclid

Parameters

↳ a: N
↳ b: N

Return

↴ N


Gives euclidian remainder of a divided by b

This function is infaillible but may overflow if a _mod_ b is out of bounds for the data type.
⚠️ For integers, this function returns 0 for divisions by 0.
ℹ️ For floating types, this function return not-a-number (NaN) for divisions by 0.