numeric operation built-in function |
functions |
& nbsp; function |
ABS (num) |
Returns the absolute value of num |
Coerce (NUM1, num2) | The
Converts NUM1 and num2 to the same type and then returns as a tuple. |
Divmod (NUM1, num2) |
Division-the combination of the take redundancy operation. Returns a tuple (Num1/num2,num1%num2). The quotient of floating-point numbers and complex numbers is rounded down (the quotient of a complex number that takes only real parts). |
Pow (NUM1, num2, mod=1) |
Takes the num2 of NUM1, and if the MoD parameter is provided, the result of the calculation is then the remainder operation of the MoD. |
Round (FLT, ndig=0) |
Accept a floating-point number flt and round it, saving ndig decimal places. If the Ndig parameter is not provided, the default is 0 digits after the decimal point. |
Numeric operation built-in function (Core Python programming 2nd edition 5.6.2)