How to convert a floating-point number into a string in SKILL?

Discussion in 'Cadence' started by madhero, Jun 24, 2008.

  1. madhero

    madhero Guest

    I have find out how to convert an integer into a string in SKILL, but
    how can I convert a floating-point number into a string? I need to put
    the calculated result to a stringfield.

    The way to convert an integer to a string is like that:
    integer=50
    strcat(concat(integer))
     
    madhero, Jun 24, 2008
    #1
  2. madhero

    S. Badel Guest

    I have find out how to convert an integer into a string in SKILL, but
    much simpler :

    sprintf(nil "%d" myint)

    for a float :

    sprintf(nil "%f" myfloat)

    You can use normal printf formatting.

    Another option is aelSuffixNotation() and aelEngNotation() that will convert a number to a string in
    suffix or engineering notations.

    Cheers,
    Stéphane
     
    S. Badel, Jun 24, 2008
    #2
  3. madhero

    madhero Guest

    There's another function I found to solve this issue:
    artMakeString().
     
    madhero, Jun 24, 2008
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.