Use Math.round to calculate whole-step points
Use Math.round to calculate whole-step points

Math.ceil truncates negative numbers towards zero, e.g. 3.9 gets
truncated to 3 instead of rounded to 4.

frontrowed/graphy