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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

parameter assign

Not applicable

parameter assign

I have a a dimension X=1.94 mm,But when i use itos(x), i get the parameter assign as 2mm. I want the the parameter to get the same valve as the dimension ie 1.94. Please Help.
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.
2 REPLIES 2
HatimAbdul
1-Visitor
(To:)

In the relation y=itos(x), y is the string of the numeric expression x. If x is not an integer, it will be rounded off. I don't know what you're trying to accomplish so I don't why you can't use x directly.

I had this issue awhile ago and was given a solution, though it is a bit invovled. You also have to have a set number of characters after the decimal point. DIM=1.94 DIM_A=FLOOR(DIM) DIM_B=(DIM-DIM_A)*100 DIM_STING=ITOS(DIM_A)+"."+ITOS(DIM_B)
Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags