The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 itoa

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
tinkusch Posted - 04/21/2004 : 10:01:06 AM
does origin C contain an itoa (integer to ascii) function? If yes, where can I find it?
Thanks for any help

Stefan

3   L A T E S T    R E P L I E S    (Newest First)
tinkusch Posted - 04/22/2004 : 04:14:41 AM
thanks, folks!

Stefan

cpyang Posted - 04/21/2004 : 12:40:05 PM
Origin C directly cast int into string, like

int nn = 12;
string str = "Test" + nn;

CP





Mike Buess Posted - 04/21/2004 : 11:38:04 AM
Hi Stefan,

Origin 7.5 has DoubleToStr() which is similar to LabTalk's $(x) notation. You will find it under Global Functions->Character/String Manipulation in the Programming Guide...

In Origin 7.0 you need to use Format...

int i = 5;
string str;
str.Format("%d",i);

Mike Buess
Origin WebRing Member

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000