cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

String to real number parameter

String to real number parameter

I would like to have an option to change a string parameter to a real number, the same way as you change a real number to a string using Itos(). There is not really a simple way to achieve this now.

6 Comments
PASousa
3-Visitor

Unfortunately itos() function don’t convert a full real number to text, it only gets then rounder integer part of the number, this is the most dumb number to text function ever, to get the full real number as text you need a lot of IF conditions concatenating alot of calculated strings. PTC should address this function working the same way as the EXCEL function where you specify up to what decimal place you want to keep the number with the possibility to round it up or down.

BenLoosli
23-Emerald II

ITOS function means Integer TO String. There is nothing beyond the integer (left of decimal point) to convert to the string.

There have been may requests for a FTOS function, Floating TO String.

 

Any numeric value can be converted to a string with a few lines in a relation.

 

Changing a string to any numeric value, wither integer or floating, is very complex and maybe too complicated for relations. Please explain your rational and use case for needing such a function. IF PTC expands their number/string conversion code, it should cover all cases.

BWS
9-Granite
9-Granite
The reason I am asking for this feature is because we use a buildup code to identify profiles.

For example: X-AB-66-P-R6-14-08



The way I am using relations now is to split this code, and use it to set all dimensions/patterns in the model.

This way I only need 1 column in my family table with the buildup code, and set the width/height/material etc. with relations.

The problem now is that when I split the code, and I get (see example) 66 as string, I am unable to calculate with it any further.




BWS
9-Granite
9-Granite
I see your post is a couple of years old. So I don't expect it to be solved soon...


MikkoHinkkanen
13-Aquamarine
olivierlp
Community Manager
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.