Join Slack
Powered by
I created a simple infix method to get around this...
# announcements
s
supaham
08/11/2016, 11:02 PM
I created a simple infix method to get around this called umod (unsigned mod) though:
Copy code
infix fun Int.umod(other: Int) = (this % other) + if (this < 0) other else 0
Open in Slack
Previous
Next