Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Hello,
is it possible to push the parameter (&MASS:FID_381) in frm to show the weight always only with one simp. ref.?
Thanks in advance
T.
it is 2 years ago, ... but i have the same case here. To show the weight it isn't the problem, but to show only 2 digits after the point doesn't work. The writing style [.2] well known to me. It doesn't work inside the frame.
Is there any help?
If the weight parameter is in a table cell for the title block, &weight[.2] works for me.
I have not tried it as a standalone note.
You comment "inside the frame", maybe you mean as part of the format?
If you are using parameters in the format, use a table in the format.
Hello to all :-),
thanks for your quick answer.
I don't know why, but fortunately it works well.
I tried it serveral times, but it doesn't operated.
I reckon it was a blank character betwenn the Parameter and the [.1].
So now it works fine!
Thanks!
Don't forget to mark your answer as the correct solution.
Sorry I'm not the creator of this posting, so I can't?
A way to do it might be to define a text parameter, then build the resultant number as a text string using relations. For example, if "massreal" is the numeric parameter and "masstext" is the string representation of it, you could get two decimal places with the following:
IF massreal < 1.0
masstext = "0."
ELSE
masstext = floor ( massreal ) + "."
ENDIF
masstext = masstext + EXTRACT ( ITOS ( 100 * ( 1 + massreal - floor ( massreal ) ) ), 2, 2 )
You then use the "masstext" parameter in the table, etc.