You specified the type as int ..... these are integers (0,1,2,3,4,5,6,7,8 ....), when you multiply 1 by 0.81, you get 0.81. .... the key number for integers is to the point, in this case zero. Since the previous answer briefly said just change the type of the variable.
source share