operators and expressions the bitwise operators assume that integers are represented in ' complement binary representation and that the sign bit is infinitely extended to the left some care is required if you are working with raw bit-patterns that are intended to map to native integers on the hardware this is because python does not truncate the bits or allow values to overflow--insteadthe result will grow arbitrarily large in magnitude in additionyou can apply the following built-in functions to all the numerical typesfunction description abs(xdivmod( ,ypow( , [,modulo]round( ,[ ]absolute value returns ( /yx yreturns ( *ymodulo rounds to the nearest multiple of - (floating-point numbers onlythe abs(function returns the absolute value of number the divmod(function returns the quotient and remainder of division operation and is only valid on noncomplex numbers the pow(function can be used in place of the *operator but also supports the ternary power-modulo function (often used in cryptographic algorithmsthe round(function rounds floating-point numberxto the nearest multiple of to the power minus if is omittedit' set to if is equally close to two multiplespython rounds to the nearest multiple away from zero (for example is rounded to and - is rounded to - one caution here is that python rounds equally close values to the nearest even multiple (for example is rounded to and is rounded to this is subtle portability issue for mathematical programs being ported to python the following comparison operators have the standard mathematical interpretation and return boolean value of true for truefalse for falseoperation description = ! > < less than greater than equal to not equal to greater than or equal to less than or equal to comparisons can be chained togethersuch as in such expressions are evaluated as are legal but are likely to confuse anyone reading the code (it' important to note that no comparison is made between and in such an expressioncomparisons involving complex numbers are undefined and result in typeerror operations involving numbers are valid only if the operands are of the same type for built-in numbersa coercion operation is performed to convert one of the types to the otheras follows if either operand is complex numberthe other operand is converted to complex number lib fl ff