Jump 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.

Rounding issues from SQL to FileMaker

Featured Replies

I am having rounding issues with MS SQL Server tables linked as an External Data Source. The decimal(18,4) field in the SQL table contains "118.4897", but in the FileMaker layout, it displays "118.49". I checked the data formatting settings of the field, set the format to Decimal and the set the "Fixed number of decimals" to 4, but it still rounds up and only displays "118.4900".

Also, if I enter a new value into the FileMaker layout, say for example "123.4567", it will save "123.4567" into the SQL table and it will display "123.4567" in the FileMaker layout. But if you switch layouts and then go back, or refresh the page, it displays "123.4600".

I know one workaround would be to change the field type from decimal to varchar, but I would rather not.

Can anyone help with this rounding problem?

 

 

some background on my system:

FileMaker Server 11 Advanced (version 11.0.3.309) on Windows Server 2008 R2 (64-bit)

MS SQL Server 2008 R2 on Windows Server 2008 R2 (64-bit)

  • 3 months later...

What ODBC driver are you using to connect?

 

I'm not to familiar with MS SQL.  If I were going to try to debug this on MySQL I would flush my General Query Log and use that to see what commands FileMaker/ODBC driver is sending.  Might help you determine if there's something you're overlooking.

I have tested it on both MSSQL and MySQL ESS tables. They both work as it should.

 

By any chance, in your ODBC settings do you have it to use the regional settings for currency, number, dates, etc? Turning this option on will truncate to 2 decimals.

Create an account or sign in to comment

Important Information

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

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.