Message 1 of 3
Trim parameter values for trailing zeros
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If I set the value of a numerical parameter with this code:
SyntaxEditor Code Snippet
ThisDoc.Document.ComponentDefinition.Parameters.Item("test").Value=100
then the parameter actually gets the value 1000,00000000 mm. Of course it has no impact on my model, but the visual presentation of my input forms are cluttered by all these trailing zeros.
Any suggestion on how to trim the trailing zeros?