Page 1 of 1

[SOLVED] Need a little help debugging my code.

Posted: Wed Mar 25, 2009 11:11 am
by Keevu
I need to figure out why it keeps saying "cannot implicity convert double to parse"


This the snippet im having trouble with.

Code: Select all

            //Height in Centimeters
            hc = ((heightfeet * 12) * 2.54) + (heightinch * 2.54);

            //Weight in Kilograms
            wk = (weightpounds) / (2.2);
I have tried a few things maybe you can help me out...


This is the entire code in visual c#
lab6.rar
This is the entire file
(53.13 KiB) Downloaded 67 times

Re: Need a little help debugging my code.

Posted: Wed Mar 25, 2009 12:29 pm
by avansc
have you tried casts?

Re: Need a little help debugging my code.

Posted: Wed Mar 25, 2009 3:48 pm
by Keevu
Yeah I just tried float casts it works now.

/solved