User Tools

Site Tools


en:examples:objects:number_to_string

Convert a Number to a String

orxS32 score = 1234;
 
orxCHAR formattedScore[6] = {};
orxString_NPrint(formattedScore, sizeof(formattedScore) - 1, "%d", score);

en/examples/objects/number_to_string.txt · Last modified: 2018/02/14 01:29 (7 years ago) by 127.0.0.1