Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How to create a custom property with 2 decimal place precision
Solved! Go to Solution.
How to create a custom property with 2 decimal place precision
Solved! Go to Solution.
You can use the Round(input number as Double, number of decimal places), but change the CInt() to CDbl() so that it returns a Double for the Round function to use. Like this:
iProperties.Value("Custom", "Scrap Percentage") = Round(CDbl(InputBox("Enter Scrap Percentage(Enter 0 if no value is available)","Scrap Percentage",0)),2)
If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) 👍.
If you want and have time, I would appreciate your Vote(s) for My IDEAS 💡or you can Explore My CONTRIBUTIONS
Wesley Crihfield
(Not an Autodesk Employee)
This works, however in Custom Properties the value returned has 0 decimal places.
Thanks you for helping
Brent
I was mistaken, after further testing the rule runs perfectly.
Thanks again for your help.
Brent