Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to calculate if X is +2 or -2 of N

Featured Replies

I have a fairly large Let/Case calculation but I've been asked to change it slightly. I hope it doesn't get broken by this.

I've been asked to evaluate if Field A is +/- 2 of Field B. I've never written any calc using this concept first can it be done, can I just add it to the case without adding fields or do think I need a field?

Sorry if this is not explained well.

I am not sure what your question is. The test itself could be simply:

Abs ( FieldA - FieldB ) ≤ 2

  • Author

Thanks let me try with a few examples. I need to know if FieldB is + 2 of FieldA or if FieldB is -2 of FieldA

Record1- FieldA = 15 FieldB = 18 15-18 = -3 not within 2

Record2- FieldA = 14 FieldB = 13 14 -13 = 1 is within 2

Record3- FieldA = 12 FieldB = 13 12-13 = -1 is within 2

I first read that Abs had to be a positive number but it "returns" a positive number so that might work.

I'll tinker thanks.

Abs ( 15 - 18 ) ≤ 2 returns False.

Abs ( 14 - 13 ) ≤ 2 returns True.

Abs ( 12 - 13 ) ≤ 2 returns True.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.