parameter assign

Not applicable
Jan 11, 2010
04:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 11, 2010
04:32 AM
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.
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.
Labels:
- Labels:
-
2D Drawing
2 REPLIES 2
Jan 11, 2010
10:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 11, 2010
10:03 AM
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.
Jan 11, 2010
11:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 11, 2010
11:00 AM
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)
