Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Issue with the inequality symbol

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-25-2018
12:06 PM

01-25-2018
12:06 PM

I created an if function for one of my equations and when I plug in the equal value as a solution, it does not recognize it as a correct value even though the inequality symbol shows that it has to be.

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-25-2018
12:20 PM

01-25-2018
12:20 PM

Because of how computers store numbers, Mathcad actually calculates H/L to be 0.19999999999999998. Since this is slightly under 0.2, the if statement returns "NG".

To alleviate this, uncheck the option "use exact equality for comparisons and truncation" under Tools -> Worksheet Options -> Calculation

4 REPLIES 4

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-25-2018
12:18 PM

01-25-2018
12:18 PM

Re: Issue with the inequality symbol

Under menu "Tools/Worksheet options," on the calculation tab, uncheck "use exact equality for comparisons and truncation"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-25-2018
12:20 PM

01-25-2018
12:20 PM

Because of how computers store numbers, Mathcad actually calculates H/L to be 0.19999999999999998. Since this is slightly under 0.2, the if statement returns "NG".

To alleviate this, uncheck the option "use exact equality for comparisons and truncation" under Tools -> Worksheet Options -> Calculation

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-25-2018
12:24 PM

01-25-2018
12:24 PM

Re: Issue with the inequality symbol

Thank you for the clarification!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-04-2018
12:05 PM

02-04-2018
12:05 PM

Re: Issue with the inequality symbol

Instead of changing worksheet options, another possibility I believe is robust is to avoid the use of specific numeric entries in inequalities. Instead of typing 0.20 in the Ratio program inequality, define a named constant (e.g., RefRatio:=Hhill/Lh) and use RefRatio in the inequality.

Lou