Use the proper function for truncating a float value to an integer (aka ``Math.floor()``). so the code is more readable.