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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 itoa
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tinkusch

Germany
94 Posts

Posted - 04/21/2004 :  10:01:06 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
does origin C contain an itoa (integer to ascii) function? If yes, where can I find it?
Thanks for any help

Stefan

Mike Buess

USA
3037 Posts

Posted - 04/21/2004 :  11:38:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 04/21/2004 :  12:40:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Origin C directly cast int into string, like

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

CP





Go to Top of Page

tinkusch

Germany
94 Posts

Posted - 04/22/2004 :  04:14:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thanks, folks!

Stefan

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000