Re: [Dev-C++] Convert double to string
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Nurhidayat <dh...@ma...> - 2001-06-28 05:36:00
|
>did any one have an idea to convert a double to a string pointer ?
>(not like _fcvt)
like this?
#include <stdio.h>
main()
{
char str[20];
double num;
num = 1234.567890;
sprintf( str, "%lf", num);
printf( "Now str's content is %s", s);
}
___Nurhidayat___
|