📜  锈模量 - Rust 代码示例

📅  最后修改于: 2022-03-11 14:49:25.855000             🧑  作者: Mango

代码示例1
//-21 modulus 4 => 3
((a % b) + b) % b    // a modulus b (workaround)
//-21 remainder 4 => -1
a % b    // a remainder b