You are using integer division, which will always result in an integer. For a quick and dirty fix you should cast your variables to some floating point variables when you divide them.
e.g.:
(double)labs / (double)labPoints
(If any of the arguments is a double then the result will be a double.)