# Modulo 1?

And so in js there is the % operator is the remainder from dividing it is convenient to check the parity of a number ( n%2 == 0 ) and ATTENTION the whole the number type if integer, then num%1 will be zero if the fraction is 0+the fraction but I can not understand because if you divide a number by 1 is not 0 ie ostach will always be the number which the mi is divided by 1.
I may not know math or UTB pin js explained to the pancreas.
sory for the diploma too lazy to put Russian characters.
March 19th 20 at 08:44
March 19th 20 at 08:46
Solution
% is the operation of taking the remainder, not the quotient. The remainder of dividing any integer by 1 is 0, since any integer can be represented as a sum of units, and 1 is divisible by 1 without remainder.

Example:
3% 1 = 3 (mod 1) = 1 + 1 + 1 (mod 1) = 0 + 0 + 0 = 0
thanks for the reply I got stupid - heather_Ri commented on March 19th 20 at 08:49
March 19th 20 at 08:48
if integer, then num%1 will be zero

An integer divided by 1, always gives himself:
x : 1 = x