Question code warning

05/05/2018 08:28 RedBuIl#1
hello, problem with a code


SO i compile and the result is = warning C4244: '=' : conversion from 'double' to 'int'

I change the code to :


I think is correct no?
05/05/2018 10:54 alfredico#2
If you don't use floats you don't have to use decimals.
05/05/2018 11:51 RedBuIl#3
Quote:
Originally Posted by alfredico View Post
If you don't use floats you don't have to use decimals.
Work thx