Hi Hackers,

I have a basic question.  How can a StringToken be converted to an
IntToken or a DoubleToken?  I'm assuming that it is possible with existing
Ptolemy elements, but I haven't found a way.  I tried using the Array and
Conversions actor libraries without success, and did not see suitable
functionality for this task in the Ptolemy Expression Language
documentation.  I may have missed something.

I am passing string messages between composite actors and would like to
parse a substring of that message as a number.  (e.g.  For "ABC_123" I
would like to convert "123" as a number I can do math with.)

Thanks in advance for any pointers you can share.

Kevin




----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to