- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Inventor pro 2017
Hi,
So basicly we have an iLogic rule that fill the part information depending on the thickness of the sheet metal.
At its core, it compares the thickness of the part with a value, if there is a match, it populations the description and such.
For some unknown reasons, the rule doesn't work when we input the thickness of a 12 gauge sheet: 0.1046
If I change the value for 0.1045 for example, it works just fine. I remeber during my school years that decimal are somewhat tricky due to the way they are calculated using binary. So, is it possible that 0.1046 falls into those few numbers that requires many bits in order to store the number correctly into a variable? And since there is not enough bits in the iLogic default variable the rule is not enough to work properly?
I am 100% sure that the only reason the rule doesn't work for that case is that specific number, and not something missing from the code (compared to all the other working code lines).
So I basicly want to know if my hypothesis is correct and what could be some potential fix to prevent such situation from rehappening.
Solved! Go to Solution.