Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.
Moderator: Coders of Rage
-
Keevu
- Chaos Rift Newbie
- Posts: 16
- Joined: Tue Mar 24, 2009 3:53 pm
Post
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 66 times
Last edited by
MarauderIIC on Thu Mar 26, 2009 8:21 am, edited 1 time in total.
Reason: marked solved
-
avansc
- Respected Programmer
- Posts: 1708
- Joined: Sun Nov 02, 2008 6:29 pm
Post
by avansc »
have you tried casts?
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
-
Keevu
- Chaos Rift Newbie
- Posts: 16
- Joined: Tue Mar 24, 2009 3:53 pm
Post
by Keevu »
Yeah I just tried float casts it works now.
/solved