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

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.

5 Comments
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.

Sapphire I

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
Regular Member
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
Regular Member
I see your post is a couple of years old. So I don't expect it to be solved soon...