0
Help with return issue! "incompatible possible lossy conversion! can't find the issue!
Hi all! I'm working on a program in which the user inputs cost of a tile, length of floor, height of floor and the program calculates the total cost of the tiling. Upon running I find the error that "incompatible possible lossy conversion" However I am using all doubles and don't see where the issue is! https://code.sololearn.com/cNV5jOB5r3SM/?ref=app
1 Réponse
+ 2
try and fix line 44 with this..
return (double) tileNum * (double) c;