Use regular division operator and round with intval()

Pagoda Box seems to have not been compiled with BCMath support.

Signed-off-by: Max Fierke <max@maxfierke.com>