🔒 Locked
sprintf question
Advertisement
Original Post
you know how sprintf(numbers, " %0.17f", somenumber); converts it so you can print it useing a char. can you do it the other way and convert letters to numbers?
sprintf only changes char arrays, so no.
you''re looking for itoa().
int tempint;
itoa(tempint, string, base); // where base is 8, 10, or 16
-eldee
;another space monkey;
[ Forced Evolution Studios ]
you''re looking for itoa().
int tempint;
itoa(tempint, string, base); // where base is 8, 10, or 16
-eldee
;another space monkey;
[ Forced Evolution Studios ]

Do NOT let Dr. Mario touch your genitals. He is not a real doctor!
ah, right-o
-eldee
;another space monkey;
[ Forced Evolution Studios ]
-eldee
;another space monkey;
[ Forced Evolution Studios ]

Do NOT let Dr. Mario touch your genitals. He is not a real doctor!
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement