Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

doubt in Convertion of integer to sting in skill code

Status
Not open for further replies.

Esakki raja

Junior Member level 2
Joined
Jun 17, 2011
Messages
22
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,409
Hi
I have doubt in convertion of integer to string in skill code

i.e

var = 5 (here var--> value is 5)

Here i want to set var-->value is "5" (string) by using the variable var

How can i do this
 

Try

var = “5”

5 would be a string.

And you can use formatted output for conversion integer to string (i.e. “sprintf()”).

Best Regards
 

If the language were BASIC, this is the command which converts a number to a string:

a$ = STR$ (x)

Could there be a similar command in skill code?
 

There is no such command in SKILL, as I know. Such kind conversion can be easily done by formatted output function sprintf(), as I already mentioned, for example, if ivar – integer and svar – string, you can write

sprintf( svar “%d” ivar )
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top