Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
I'm trying to check the flange thickness ratio, b/2t, with b=18 and t=0.75. Therefore b/2t=12. 18/(2*0.75)≤12 returns true, of course, but b/2t≤12 returns false. This does not happen with most other values of b and t. What's going on here and is there any way for me to fix it?
I tried with Prime 6 and also with Prime 9 and did not experience the problem you describe!
Chances are that in your sheet the values for b and/or t are not simply assigned as in my example but rather are the results of some further calculations. So maybe b ist something like 18.00000001 or t is around 0.74999999999 which both would explain the effect you experience.
Given from the subject for this thread I guess you already had that suspicion yourself.
Let display the two values with a max of decimals and let also the symbolic display the content of these variables.
A fix/workaround could be to use something like 12+10^-10 instead of 12.
For further analysis you would have to attach your sheet here
Hi,
The situation is reproduceable if units of "in" are applied to the dimensions.
The solution is to set the calculation option to approximately equal
Cheers
Terry
Prime is not able to show as many decimals as would be necessary.
But you can let Prime display the difference from the desired and expected value to see the problem.
Turning on "Approximate Equality" gives you no control over the range within values are to be considered equal, but its sure convenient and most of the time sufficient.
Prime chooses an approach where the percentage difference to the value to be compared is decisive. This percentage of value approach may be appropriate in many cases, but I could think of cases where an absolute value is more desirable.
BTW, symbolic evaluation does not suffer from this (independent from the "Appoiximate Equality" setting: