Difference between revisions of "Osiris/API/IntegerModulo"

From Divinity Engine Wiki
Jump to: navigation, search
(Created page with "===== Full Definition(s) ===== * query '''IntegerModulo'''('''''[in]'''(INTEGER)'''''_Num''',''''' [in]'''(INTEGER)'''''_Mod''',''''' [out]'''''(''INTEGER'')'''_Return''') ===...")
 
m
 
Line 1: Line 1:
 
===== Full Definition(s) =====
 
===== Full Definition(s) =====
* query '''IntegerModulo'''('''''[in]'''(INTEGER)'''''_Num''',''''' [in]'''(INTEGER)'''''_Mod''',''''' [out]'''''(''INTEGER'')'''_Return''')
+
* query '''IntegerModulo'''('''''[in]'''(INTEGER)'''''_Num''', '''''[in]'''(INTEGER)'''''_Mod''', '''''[out]'''(INTEGER)'''''_Return''')
 
===== Description =====
 
===== Description =====
 
Returns the remainder after division of '''_Num''' by '''_Mod''' as '''_Return'''.
 
Returns the remainder after division of '''_Num''' by '''_Mod''' as '''_Return'''.
Line 11: Line 11:
 
* [[Osiris/API/IntegerDivide]]
 
* [[Osiris/API/IntegerDivide]]
 
    
 
    
[[Category:Osiris Queries]]
+
[[Category:Osiris Queries|IntegerModulo]]

Latest revision as of 16:37, 19 December 2017

Full Definition(s)
  • query IntegerModulo([in](INTEGER)_Num, [in](INTEGER)_Mod, [out](INTEGER)_Return)
Description

Returns the remainder after division of _Num by _Mod as _Return.

Return Values
  • Success/Failure: Never fails.
  • _Return: The remainder after dividing _Num by _Mod.
Notes
  • Warning: attempts to calculate the remainder after division by 0 causes undefined behaviour and is not caught.
See Also