HomeSort by relevance Sort by last modified time
    Searched refs:divmod (Results 126 - 146 of 146) sorted by null

1 2 3 4 56

  /external/python/cpython2/Demo/tkinter/guido/
ss1.py 484 n, m = divmod(n-1, 26)
  /external/python/cpython2/Lib/test/
test_ftplib.py 114 p1, p2 = divmod(port, 256)
test_bigmem.py 145 slen, remainder = divmod(size, tabsize)
    [all...]
test_tarfile.py     [all...]
test_datetime.py 496 # The interpreter shouldn't crash because divmod() returns negative
    [all...]
test_io.py     [all...]
  /external/python/cpython3/Lib/
imaplib.py     [all...]
  /external/python/cpython3/Tools/demo/
ss1.py 469 n, m = divmod(n-1, 26)
  /external/python/cpython3/Lib/test/
datetimetester.py 860 q, r = divmod(t, minute)
865 q, r = divmod(t, minute)
870 self.assertRaises(ZeroDivisionError, divmod, t, zerotd)
872 self.assertRaises(TypeError, divmod, t, 10)
    [all...]
test_bigmem.py 123 slen, remainder = divmod(size, tabsize)
    [all...]
test_buffer.py 653 n, r = divmod(bytelen, itemsize)
    [all...]
test_io.py     [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
test_bigmem.py 152 slen, remainder = divmod(size, tabsize)
    [all...]
test_tarfile.py     [all...]
test_io.py     [all...]
test_datetime.py     [all...]
  /external/python/cpython2/Lib/plat-mac/
FrameWork.py     [all...]
gensuitemodule.py 437 major, minor = divmod(version, 256)
    [all...]
  /external/tensorflow/tensorflow/python/kernel_tests/
embedding_ops_test.py 211 ids_per_partition, extras = divmod(vocab_size, num_shards)
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/pydoc_data/
topics.py 9 'binary': u'\nBinary arithmetic operations\n****************************\n\nThe binary arithmetic operations have the conventional priority\nlevels. Note that some of these operations also apply to certain non-\nnumeric types. Apart from the power operator, there are only two\nlevels, one for multiplicative operators and one for additive\noperators:\n\n m_expr ::= u_expr | m_expr "*" u_expr | m_expr "//" u_expr | m_expr "/" u_expr\n | m_expr "%" u_expr\n a_expr ::= m_expr | a_expr "+" m_expr | a_expr "-" m_expr\n\nThe ``*`` (multiplication) operator yields the product of its\narguments. The arguments must either both be numbers, or one argument\nmust be an integer (plain or long) and the other must be a sequence.\nIn the former case, the numbers are converted to a common type and\nthen multiplied together. In the latter case, sequence repetition is\nperformed; a negative repetition factor yields an empty sequence.\n\nThe ``/`` (division) and ``//`` (floor division) operators yield the\nquotient of their arguments. The numeric arguments are first\nconverted to a common type. Plain or long integer division yields an\ninteger of the same type; the result is that of mathematical division\nwith the \'floor\' function applied to the result. Division by zero\nraises the ``ZeroDivisionError`` exception.\n\nThe ``%`` (modulo) operator yields the remainder from the division of\nthe first argument by the second. The numeric arguments are first\nconverted to a common type. A zero right argument raises the\n``ZeroDivisionError`` exception. The arguments may be floating point\nnumbers, e.g., ``3.14%0.7`` equals ``0.34`` (since ``3.14`` equals\n``4*0.7 + 0.34``.) The modulo operator always yields a result with\nthe same sign as its second operand (or zero); the absolute value of\nthe result is strictly smaller than the absolute value of the second\noperand [2].\n\nThe integer division and modulo operators are connected by the\nfollowing identity: ``x == (x/y)*y + (x%y)``. Integer division and\nmodulo are also connected with the built-in function ``divmod()``:\n``divmod(x, y) == (x/y, x%y)``. These identities don\'t hold for\nfloating point numbers; there similar identities hold approximately\nwhere ``x/y`` is replaced by ``floor(x/y)`` or ``floor(x/y) - 1`` [3].\n\nIn addition to performing the modulo operation on numbers, the ``%``\noperator is also overloaded by string and unicode objects to perform\nstring formatting (also known as interpolation). The syntax for string\nformatting is described in the Python Library Reference, section\n*String Formatting Operations*.\n\nDeprecated since version 2.3: The floor division operator, the modulo\noperator, and the ``divmod()`` function are no longer defined for\ncomplex numbers. Instead, convert to a floating point number using\nthe ``abs()`` function if appropriate.\n\nThe ``+`` (addition) operator yields the sum of its arguments. The\narguments must either both be numbers or both sequences of the same\ntype. In the former case, the numbers are converted to a common type\nand then added together. In the latter case, the sequences are\nconcatenated.\n\nThe ``-`` (subtraction) operator yields the difference of its\narguments. The numeric arguments are first converted to a common\ntype.\n',
    [all...]
  /external/guice/extensions/struts2/lib/
freemarker-2.3.16.jar 

Completed in 461 milliseconds

1 2 3 4 56