float -> char conversion

Started by
0 comments, last by HyprLogik 23 years, 3 months ago
How do you convert from type float to type char (a string). Say for example, you want to put the result of a calculation in a message box. Thanx. |-|A[k3R$Z R \/\/|-|AT |V|Ak3 t|-|3 \/\/0R|_D g0 R0|_||\|D!!
|-|A[k3R$Z R //|-|AT |V|Ak3 t|-|3 //0R|_D g0 R0|_|||D!!
Advertisement
    float sum = 34.4 + 12.1;char buff[32];sprintf(buff, "%f", sum);  



Edited by - SomeCodeGuy on January 15, 2001 5:19:37 PM

- code

This topic is closed to new replies.

Advertisement