How I can convert real numbers to strings. If I use the function “itos(int)� the real number will be rounded off and I want to keep the decimal places to appear in the string. My idea is to have one string parameter created from few real numbers parameters. For example: Size = length x width Where: Size is a string parameter. Length & width are real numbers parameters extracted from actual dimensions in my part. The only way I found so far to achieve this is to multiply the real number by 1000 (if I want to keep 3 decimal places ), then using “itos(int)� & “extract(string, position, length)� to configure the desired string, digit by digit. But that is very complicated for something, which seems so simple. Any better ideas? Thank you
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.