Answers for "rust modulus"

0

rust modulus

//-21 modulus 4 => 3
((a % b) + b) % b	// a modulus b (workaround)
//-21 remainder 4 => -1
a % b	// a remainder b
Posted by: Guest on December-19-2021

Browse Popular Code Answers by Language