fn rem(comptime T: type, numerator: T, denominator: T) !T

Returns the remainder when numerator is divided by denominator, or an error if denominator is zero or negative. Negative numerators can give negative results.

Parameters

T: type,
numerator: T,
denominator: T,