Sprintf

From ElectroDragon Wiki
Revision as of 13:19, 27 May 2021 by Chao (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Example

float test1 = 3.54;
char num_char[4];
sprintf(num_char, "%f", test1);