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 09:29 (2 years ago) (external edit)