I have not seen any questions on this forum concerning use of the modulo operator (%) with PLEG. I surmise that no one is yet having issues using the modulo operator with PLEG or that no one is yet using the modulo operator with PLEG. I created a short list of uses for the modulo operator with PLEG. Any thoughts and suggestions are welcome.
[ol][li]Automatically reset a counter when the counter reaches a specified limit.[/li]
[li]Determine if a value is even or odd.[/li]
[li]Convert a value in seconds to hours, minutes, and seconds.[/li]
[li]Round a value to a specified multiple of 10.[/li]
[li]Determine whether two values divide evenly.[/li]
[li]Get the last n digits from a value.[/li][/ol]