I was reading through some code trying to figure out exactly how it worked and came across the modulo (%) symbol. Not knowing what it was lead me to the arduino reference page and i found it very confusing. Im by no means an expert in arduino, C++ or mathematics, so sorry if this is a dumb question, but the description says 'Calculates the remainder when one integer is divided by another. It is useful for keeping a variable within a particular range (e.g. the size of an array). ' and the examples then say
x = 7 % 5; // x now contains 2
x = 9 % 5; // x now contains 4
x = 5 % 5; // x now contains 0
x = 4 % 5; // x now contains 4
but 7÷5=1.4 not 2, 9÷5=1.8, is there something im missing or was the word 'divided' the wrong term to use? as i said im no expert, just a normal person trying to figure all this out on my own so any clarification would be greatly appreciated, thanks