i have a float variable,is it possible for me to pass this (float) variable to a method thats taking a double as arguement? i am not applying any cast to the float variable.
Yes ! Since double is a bigger container, it can hold float values (which would fit in it). Explicit casting is not required.
[ February 08, 2005: Message edited by: kolkata prince ] [ February 28, 2005: Message edited by: kolkata prince ]
Work like you don't need the money. Love like you've never been hated. Dance like nobody's watching. Sing like nobody's listening. Live like it's Heaven on Earth.
Currently I Reside HereWEBlog
Christie George
Greenhorn
Joined: Aug 16, 2004
Posts: 19
posted
0
ok fine agreed...but in such a case will the extra bits of the float value be filled with a junk value(when its passed)?