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.

calculation: problem with decimals

Featured Replies

Hello all,

I have this tiny problem, and been looking for couple days but can't seem to find the solution for solving the decimal calculation. So if there is a post on this issue, I apologize for re-posting and please post a link for me if possible ... I hope I could describe this as best as possible

I am implementing a payroll check writter on my database but i faced a problem with the decimals.

I don't know how to put it in words so please see this example:

Shown on the Record:

Gross Pay: 800.00

Fit: 73.62

Fica: 61.20

Sit: 14.37

-----------------

Net: 650.81

The real result (not shown on the record

Gross Pay: 800.00

Fit: 73.623

Fica: 61.198

Sit: 14.374

--------------------

Net: 650.805

I have implemented the check writting created by Geoff Ryle, into my database, but it seems that it doesn't eliminate the extra decimal "5" even if the field shows 650.81 and writes:

"Six Hundred Fifty and 80.5/100" instead of "Six Hundred Fifty and 81/100"

Here is the cents calculation:

Field Name: Cents

Calculation:

Round((Check Amount-Int(Check Amount))*100 +.00005, 2)

Field Name: Cents Text

Calculation:

Case(Mod(Cents,100) = 00, "NO", Mod(Cents,100) < 10, "0" & Mod(Cents,100), Mod(Cents,100))

Hope this is understandable--- Bare with me smile.gif...

Post link- related

confused.gifconfused.gifconfused.gif

I think Cents should be Round((Check Amount-Int(Check Amount))*100, 0)

and Cents Text = Case(Cents = 0, "NO", Cents < 10, "0" & Cents, Cents)

  • Author

RalphL... You are awesome... Can't thank you enough--- now I could write paychecks and stop writting 1200 checks by hand... or try a program that makes you sign up for payroll service or a program that limits the information input... smile.gif... ty... let me know if you need anything, will gladly help smile.gif.

You rock!

Cheers smile.gif...

Ron

Hi Ralph,

My suggestion would be to deal with the rounding before they become part of the Net / Written Amount.

Hi ronnie524,

I prefer Ilyse Kazar approach. You can download a copy of her file from site

http://www.datatude.net/

go to the Tips and Download area.

See the attached file for my stab at your needs using her calculation.

HTH

Lee

PayCheckDeduts.fp5.zip

You can also shorten the cents calc to

Case( Cents, Right( "0" & Cents, 2 ), "NO" )

  • Author

Thank you all smile.gif... I guess whatsoever solution I use... it would give me the same answer smile.gif....

Thank you all smile.gif

  • Author

Lee, thank you smile.gif... actually I was faced with another problem with decimals using "<***>" keys, your solution actually worked better smile.gif... ty smile.gif

yours truly,

Ron

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.