<div dir="ltr"><div>Hi all!</div>Is there a modulo operation/function in Swift? I want the &quot;true&quot; mathematical modulo (as % in Python), and not remainder (as % in Swift).<div><br><div>Do I have to implement this basic mathematical function myself and if so what is the best way to write it (it will be heavily used so I want it to be as fast as possible)?</div><div><br></div><div>/Jens</div></div></div>