skill program float to string conversion

I have been trying to convert floatnum in to binary using CCSfloatToString() function but i have been facing this error E- *Error* eval: undefined function - CCSfloatToString how to resolve this error 

Parents
  • That's not a built-in function. It's covered in this article: Data type conversion in SKILL for numbers (integers/floats), strings, and symbols stored in various formats; Conversion of lists to strings, vectors (arrays), tables, etc. and getting the values

    You can easily achieve this by using:

    lsprintf("%g" floatNum)

    or (depending on where you want to use this), functions such as aelSuffixNotation, aelEngNotation etc.

    Andrew

Reply
  • That's not a built-in function. It's covered in this article: Data type conversion in SKILL for numbers (integers/floats), strings, and symbols stored in various formats; Conversion of lists to strings, vectors (arrays), tables, etc. and getting the values

    You can easily achieve this by using:

    lsprintf("%g" floatNum)

    or (depending on where you want to use this), functions such as aelSuffixNotation, aelEngNotation etc.

    Andrew

Children
  • Hi andrew thanks it worked when I use sprintf()

CDNS Forum Thread CSS JS
CDNS - Fix Layout