I'm reading a book and it says the equation $$ a \bmod n = a - n \left\lfloor\frac{a}{n}\right\rfloor$$ follows that $$ 0 \leq a \bmod n \lt n. $$
I understand that the remainder is less than divisor, but I can't understand how the author got it from the first equation. Could someone, please, explain it to me?