Location>code7788 >text

Priority of operations

Popularity:274 ℃/2024-08-02 16:44:34

White today found COMPUTER arithmetic is very interesting, the post summarizes it
I-Basic
Plus +
Decrease-
multiply*
get rid of

Click to view code 1. Take the remainder % 2. Modulo/integer divided by integer 3. Retain decimal %.nf (n is n decimal places)
The rules of arithmetic are the same as in math

II - Interesting Edition
a=(... ,... ,... ,... ,...) //a is assigned to the content after the last comma.
a=... ,... ,... ,... ,... ;//Assign a to the first number after the equal sign.



. . in fact .Each of the operations in the parentheses is performed, only the display output rules are differentIt's really interesting.