Current location - Training Enrollment Network - Mathematics courses - What is the difference between the rules of using arithmetic operators and mathematics?
What is the difference between the rules of using arithmetic operators and mathematics?
Arithmetic operator is the basic operator in high-level language, and its function is the same as addition, subtraction, multiplication and division in mathematics.

Arithmetic operators are used to perform basic mathematical operations, and the final calculation result is still numerical. There are many similarities between arithmetic operators and arithmetic operations in mathematics, such as priority, combination and so on.

When both sides of the divisor are integer quantities, it is called divisibility, and only the integer part of the operation result is retained. When there are real numbers on both sides of the divisor, the result of the operation is a real number.