Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Hello, I have a question. As you can see in attached picture, i want to create function if IL1 equal to IL2, but I want the equal to function to only consider 4 number of decimal places (ie: 0.6193). Is it possible? I use Mathcad Prime. Thank you
Solved! Go to Solution.
Hi,
Math formatting only affects the way it is displayed it still is operating at full accuracy.
The trick is to use the round feature then compare if equal.
It is possible to do this to whole vector at once
Cheers
Terry
Try this: click on IL1/IL2 and then click on Math Formatting tab, and change to the Decimal, and then increase/decrease to the 4 decimal numbers:
Hi,
Math formatting only affects the way it is displayed it still is operating at full accuracy.
The trick is to use the round feature then compare if equal.
It is possible to do this to whole vector at once
Cheers
Terry
Thank you verry much terry, It works.
Thank you Cornel for your advice!
I guess a more common way would be to ask, if the absolute value of the difference is smaller than 10^-5 (or whatever)
You can apply this to the full vectors but you must apply vectorization, as otherwise the absolute value is interpreted as length of the difference vector.
Thank you Werner.