Hi
Can somebody tell me how to convert float type variable to double type variable in C ?
Thank You
Hi
Can somebody tell me how to convert float type variable to double type variable in C ?
Thank You
You could just use a typecast, e.g., (double)x for some float variable x, or in various cases could rely on implicit conversion. Of course, you don't actually gain any effective precision.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Thank You LaserLight
Can you please tell me how many digits after the floating point exist in float and how many in double ?
float 6 digits
double 14 digits