The code using integer math: 33/100 = 0
Change the denominator to float: 33/100.0 = .33