iLogic Round function errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi I having trouble to use the Round function in Inventor 2025. In Inventor 2022, the following code would set a double value up to 1 decimal digit for a custom property. I'm using this as example, but I have several codes presenting the same issue and my other colleagues from our company are having the same problem.
iProperties.Value("Custom", "MAXIMA_CARGA_FLEXAO") = Round((2 * (MAX_BS * W_rolamento) / DIST_A) / 1000, 1)
But after updating to V2025 iLogic is setting 12 decimal digits, even if if the code requests only 1 decimal. I've tested the same code for showing the value on a MsgBox and the value show up rounded to 1 decimal on the message box, but write the value with 12 digits on the custom property.
I also tried to round up to other decimal precisions but had the same results, how can I fix it? (Considering we have hundreds of codes using this function for over 10 years without this issue)