Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing a type double/int toa type char

Status
Not open for further replies.

desmondkenny

Programmer
Feb 26, 2002
6
0
0
IE
how is this possible so as you can print the number to a string, NOT it's ascii code?
 
not sure if i completely follow... is this what you mean???

int x = 12345
char buffer[128];
sprintf(buffer,"%d",x);


Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top