0

What does the function 7%2= mean? And how does it work?

6th Nov 2016, 4:26 PM
ThE sOuNd In YoU
ThE sOuNd In YoU - avatar
4 Respostas
+ 4
% is modulus and it is a division which stores the remainder, for example 5%2= 1 because 5 divided by two is 2 and has 1 remainder
6th Nov 2016, 4:40 PM
Rodrigo Tallar
Rodrigo Tallar - avatar
0
that is a modulo. it requires u to give the answer as the reminder of its division. 7%2= 3 rem 1. answer is 1
6th Nov 2016, 4:42 PM
Moseskuria
Moseskuria - avatar
0
New here, it seems to me like it's a method of removing the inconvenient/irrational aspects of mathematics in the first post, or a way of extrapolating the remainder in isolation in the second. Not only am I interested in the reason to both of these, but why the sigil for percentile for the function. Why? I await anyone scholarly help x XD
23rd Nov 2023, 10:00 PM
Aidan Coyle
Aidan Coyle - avatar
- 1
Do you want to know what '7%2' does? In that case, '%' is an operator which finds the remainder when a number is divided by the other. Here 7%2 gives the remainder 1 when 7 is divided by 2. In other words 7 = (2*3) + 1 7/2 = 3 7%2 = 1
6th Nov 2016, 4:41 PM
Rahul Chittimalla
Rahul Chittimalla - avatar