how to use modulus in mojo

i am back with another question how can i use moduls operator in mojo like in python we use 4%2 and output is 0.
2 Replies
Jack Clayton
Jack Clayton•2y ago
Full support for modulus operator, works the same as Python and you can define it yourself on your own types just like Python 🙂
aviral shastri
aviral shastriOP•2y ago
ok i checked and now it works thanks

Did you find this page helpful?