Mathematical modulus in c# - by penguat Is there a library function in c# for the mathematical modulus of a number - by this I specifically mean that a negative integer modulo a positive integer should yield a positive result. Read the article