Rotation with Modulo

How well do you know your fundamental operators in different languages? ‘Easy’ examples help to fortify that knowledge, and comparing across languages makes for some neat implementation detail discoveries. I saw this toot from @gregeganSF on Mastodon Post by @gregeganSF @mathstodon.xyz View on Mastodon which says To rotate a j-digit number n by k digits, if n≠10^j-1 there is a simple formula:…