Re: [Dev-C++] =?iso-8859-1?Q?Help_Me!_float_to_string?=
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Szathmary L. <sz...@de...> - 2003-05-19 15:29:14
|
> How to convert a float to a string ?? If you prefer C-style, you can use sprintf(), which is a universal solution, you can use it with any type: -------------------------- float f = 3.14f; char str[20]; sprintf(str, "%.2f", f); -------------------------- Laszlo |