Modulo p operation
Given a positive integer p, any integer n must have an equation
n = kp + r
Where K and R are integers and 0 ≤ r
For positive integers p and integers A and B, the following operations are defined:
Modulo operation: A
The remainder functions of PHP are described in MOD (x, y) and x % y. The remainder function PHP is used to obtain the remainder MOD (x, y) x % yMOD of the remainder function PHP. for example, 93,9 is the divisor, and 3 is the divisor. the mod
ObjectiveThe original posted in the Famine game bar, in order to make the article more targeted, the original cut and streamlined. This paste is mainly for programming 0 basic Modder to explain some of the basics of programming. As for the
Take the remainder function PHP to take the remainder function PHP two to take the remainder MOD (x, y) x%y
MOD
For example: 9/3,9 is the divisor, 3 is the divisor. The MoD function is a redundancy function in the form of:MoD (NEXP1,NEXP2), which
Php uses the % symbol to take the remainder, that is, the modulo operation. The remainder is used. Note that the remainder function PHP is used to take the remainder function PHP and the remainder MOD (x, y) x % y
MOD
For example, 9/3, 9 is the
The remainder function PHP takes the remainder function PHP two to take over MOD (x,y) x%y
MOD
For example: 9/3,9 is a divisor, 3 is a divisor. The MoD function is a remainder function in the form of:MoD (NEXP1,NEXP2), which is the remainder of
Yesterday, when learning the mathematical functions of MATLAB, the tutorial mentions that modulo (MoD) and take-rest (REM) is different, today on the Web specifically checked:
Usually the modulo operation is called the rest operation, and they
1. What is cardinal type?
For example, timer1.interval, how can I convert string to Cardinal?
It is not a 32-bit unsigned integer.
Strtointdef (S, 0 );
2. getmem Function
Memory is opened, which is equivalent to malloc of C.VaRMystring:
In Oracle, the remainder is obtained using the MOD (numer1, number2) function, and the returned value is the other values. For example:
Output 1 ~ All integer values in 13 that are not multiples of 3.
Declare -- I number; begin for I in 1 .. 13
For an integer, a, or a method to find the remainder of the operation is divided into the following two steps:
1. Seeking integer quotient: c=a/b
2. Calculating the modulus or remainder: r=a-(c*b)
Modulo operation and redundancy operation are
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.