Quotient / Mod Function
Quotient / Mod Function
I remember there being a Windows API function that computes the quotient and remainder of the division of two integers. Does such a function exist, and, if so, can someone tell me what it is?
Re: Quotient / Mod Function
I don't know the Windows API function, but in AHK we have floor division, as you already know, and of course modulo, which will return the remainder: https://autohotkey.com/docs/commands/Ma ... ion_Modulo
Of course, with these you could create your own user function that does what you are looking for... you just have to decide how you want the result: An array as return value or perhaps byref variable(s)?
Of course, with these you could create your own user function that does what you are looking for... you just have to decide how you want the result: An array as return value or perhaps byref variable(s)?
Last edited by gregster on 11 Jul 2018, 15:44, edited 1 time in total.
Re: Quotient / Mod Function
There is also this: https://msdn.microsoft.com/de-de/librar ... .110).aspx
(From your original question it wasn't clear to me if you were looking for this or if you asked if such a function alreday exists in AHK...)
(From your original question it wasn't clear to me if you were looking for this or if you asked if such a function alreday exists in AHK...)