Modulo division - return the other part #10540
Closed
Kaloszer
started this conversation in
Authoring Help
Replies: 1 comment 8 replies
-
I think I might've overthinked it - normal division should work aswell. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
This is a question due to this bug/limitation:
#5632
My idea was to simply get the length of the current AR array, modulo it, get how many full divisions I got and then use that in a loop to iterate n times over a module to deploy the rules sequentially (due to 'batchSize()' not working. However modulo only returns the 'rest', does not return the actual division value.
Wouldn't it make sense to also include an output of how many times it could divide?
eg. Result of
My current solution is to get the module, subtract it from the total count and divide it to get the actual count.
Beta Was this translation helpful? Give feedback.
All reactions