The return value is an Integer. You need to convert it to a float and divide by 10.0. If you divide 7 as an integer by 10, you’ll get 0; if you divide 7.0 by 10.0, you’ll get 0.7.
The return value is an Integer. You need to convert it to a float and divide by 10.0. If you divide 7 as an integer by 10, you’ll get 0; if you divide 7.0 by 10.0, you’ll get 0.7.