M
Modular•13mo ago
aviral shastri

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•13mo 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 shastri•13mo ago
ok i checked and now it works thanks
Want results from more Discord servers?
Add your server