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

24th Sep 2017, 8:58 PM
Damiano Marsili
2 ответов
+ 2
try and fix line 44 with this.. return (double) tileNum * (double) c;
24th Sep 2017, 9:23 PM
D_Stark
D_Stark - avatar