5 built-in functions for >> numeric operations
->abs (), returns the absolute value of the given parameter
->coerce (), which returns a tuple that contains the two numeric elements of a type conversion. (The type of the two numeric elements is consistent after conversion)
->divmod (), returns a tuple containing quotient and remainder
->pow (), if two parameters are accepted, an exponential operation is performed, and if 3 parameters are accepted, the exponential operation is performed first, then the result of the operation and the third parameter are taken.
->round (), rounding a number and returning a float. It has an optional number of decimal digits parameter. The decimal digits parameter indicates the number of digits specified after the decimal point is accurate
Comparison:
Int () truncates the fractional part directly. (The return value is an integer)
Math.floor () Gets the integer closest to the original number but less than the original number. (return value is floating point)
Round () gets the integer nearest to the original number. (return value is floating point)
Python Basics (ii)