- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
Here is an example:
a = 4
b = 7
foo(4, 7) = 2, because 2 is the smallest multiple of 4 which is greater than or equal to 7 (2 * 4 = 8 >= 7)
Another example:
a = 2
b = 5
foo(2, 5) = 3, because 3 is the smallest multiple of 2 which is greater than or equal to 5 (3 * 2 = 6 >= 5)
How to get this function in JASS?
Here is an example:
a = 4
b = 7
foo(4, 7) = 2, because 2 is the smallest multiple of 4 which is greater than or equal to 7 (2 * 4 = 8 >= 7)
Another example:
a = 2
b = 5
foo(2, 5) = 3, because 3 is the smallest multiple of 2 which is greater than or equal to 5 (3 * 2 = 6 >= 5)
How to get this function in JASS?