glance
glance copied to clipboard
Add MOD(%) helper function in Custom-api
Description
- What problem would this feature solve? Currently the MOD operation is not available in Custom-API. Some additional mathematical calculations could be performed on Glance side if this operation was available as a helper function.
- Are there any potential downsides to this feature? No downsides
- If applicable, what would the configuration for this feature look like?
mod(a, b int) int: Remainder after dividing b by a. - Are there any existing examples of this feature in other software? Not applicable
- If applicable, include any external documentation required to implement this feature https://go.dev/ref/spec#Arithmetic_operators
- Anything else you think might be relevant This operation is only available on int and not float
Note: I am able to implement this myself
Hey, feel free to submit a PR for this.
Merged