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.

SKILL - Convert floating number to string

Status
Not open for further replies.

zorronte

Newbie level 3
Joined
Feb 12, 2006
Messages
3
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,306
cadence floating number

Hello,

does somebody know, how i convert a floating number to a string in SKILL?

Thanks for your assistance.
 

numbertostring in chinese

Hi,

SKILL is a scripting language and parameterized cells description language of Cadence Design Systems IC design software.
 
convert to string skill

Why do you want convert a floating number into String?..

Are you getting any input from Pop-up forms?..

Tell me clearly, so that I can help you out in this regard...
 

floating number

Hi,

i use the cadence design framework (virtuoso) to create schematics. I simulate and measure op amp charcteristics with ocean scripts. After simulation i plot several signals in the waveform viewer (transient signals, common mode output and input signals, gain and phase vs. frequency ...). I let calculated values indicate in the CIW or write into a file.

Now, i would like to indicate calculated values (gain bandwidth, phase margin, corner ...) in the waveform viewer, but the function to add labels or text in the waveform viewer need a string, but the values are floating numbers or integers.

addWindowLabel( l_location t_label ) t_label must be a string

That's my problem :)
 

How do I convert a string "123" to a number 123 in SKILL?
Thanks!
 

linereadstring "123"

Uh, doesn't this produce "list" datatype?
How about sprintf(nil "%L" 123) instead?

Or in this case:
addWindowLabel( l_location sprintf(nil "%L" T_label ))
where 'T_label' can be a variable which stores the numerical value.

Best regards,
I-FAB
 
Thanks for all the reply. I have found out the I could use atof to convert say string "1.2" to floating number 1.2.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top