glance icon indicating copy to clipboard operation
glance copied to clipboard

Add MOD(%) helper function in Custom-api

Open anant-j opened this issue 6 months ago • 2 comments

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

anant-j avatar May 07 '25 19:05 anant-j

Note: I am able to implement this myself

anant-j avatar May 07 '25 19:05 anant-j

Hey, feel free to submit a PR for this.

svilenmarkov avatar May 09 '25 09:05 svilenmarkov

Merged

anant-j avatar May 16 '25 20:05 anant-j