Fixed result display to display actual result instead of int division to zero