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.

If entered number is odd, round up to even?

Featured Replies

Hi,

My app needs to automatically calculate the number of sheets of paper a print job will need so the requesting department can be charged accurately.

Most of my calculations work fine, but if the original document has an odd number of sheets, and the job requires going from 1-sided copies to 2-sided, I end up with an odd number of sides, and there's no such thing as a one-sided sheet of paper (Moebius strips not withstanding).

Example: Original has 3 single-sided sheets and the job wants them converted to double-sided. 3 / 2 = 1.5 sheets, which means 3 sides will be used.

Since the user enters the number of original sheets on their job ticket, how can I have Filemaker test the user's entered number of original sheets and correct it so that if an odd number is entered, FM will round that up to an even number?

I could instruct the users to round up to the next even number, but I'd prefer to have Filemaker handle it, since most users will forget to do this.

  • Author

Thanks, John, I'll give that a shot!

  • Author

Beautiful, that did the trick - thanks!

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.