Divmod

from Wikipedia, the free encyclopedia

Divmod is a term used in programming .

function

In the programming languages Python and Ruby, it describes a function for the simultaneous calculation of integer quotient and remainder when dividing by remainder . In the programming language the function is called HaskelldivMod and in Object Pascal it is called DivMod. The C standard library offers, depending on the data type div, ldivand the like.

Individual evidence

  1. http://docs.python.org/library/functions.html#divmod
  2. http://www.ruby-doc.org/core-1.9.3/Numeric.html#method-i-divmod
  3. http://www.haskell.org/onlinereport/haskell2010/haskellch9.html