position = 14
position = position - position%3
=> 12
That code above works, but I am loath to reference position
three times. Is there an equivalent ++
for what I am attempting to do above? I envision something like position =-%3
.
I can't find anything in the ruby-docs. Anyone?