You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It turns out that Rust's % behavior mimics C99 (adopting the sign of the dividend). However the modulus and remainder are not the same, but Rust's implementation of int::rem() simply uses the % operator:
#[inline(always)]pub pure fnrem(x:T,y:T) -> T{ x % y }
Shouldn't int::rem()'s behavior be different? Why would Rust have two names for the same action?