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.
% 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.