Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hello,
I need to convert a real number attribute to a string attribute rounded with 3 decimal places.
Example:
2.0000000000000E-2, on attribute "UNDERSIZE1"
Should be displayed on a new attribute with a value of: 0.002
How can I do this? I cannot make this change on Creo, I need to make it on Windchill, maybe using a calculated attribute with a formula?
Thanks!
Solved! Go to Solution.
OOTB ,this can be done with calculated attributes fucntions,yoy can use bround() for decimal precision and str() to convert to string
Hi @hdasilva
Use DataUtility customization and format the realnumber to string
String format = "%.3f %s";
component.setValue(String.format(format, massDouble, unitString));
PetrH
Can you help me on how to do it??
OOTB ,this can be done with calculated attributes fucntions,yoy can use bround() for decimal precision and str() to convert to string