Fixed precision loss; round is better than floor here.
Reformat for clarity (subjective of course)