Mar 19, 2023 10:10 PM
Hi Airtable Wizards,
I have the following formula which is formatted in currency and occasionally returns a -$0.00 result, where to my untrained eye, I cannot see why.
Solved! Go to Solution.
Mar 23, 2023 01:18 AM
I assume you're trying to get it to round two decimal places?
If so, try:
ROUND({PM: TOTAL BANK ALL EFTPOS}-{PM: TOTAL EFTPOS SALES}, 2)
You can also try out `ROUNDUP()` if that's what you want instead
Mar 19, 2023 10:35 PM
Mar 20, 2023 05:56 PM
Ah I see, thanks @TheTimeSavingCo! Unfortunately ROUND() rounds my output too much and I need to be aware of any discrepancy, no matter how large or small (e.g. 0.04 is rounded to 0.00). After having a look at those threads, this looks to be an endemic issues with no fix, so I'll just deal with it for now.
Thank you
Mar 21, 2023 12:46 AM
Roger that. You probably already know this, but round lets you set the precisions. Not sure if that helps
Mar 22, 2023 06:49 PM - edited Mar 22, 2023 06:59 PM
@TheTimeSavingCo I certainly did not know that! Just tried the following and it's not liking my input/direction as my result is formulated in currency.
ROUND({PM: TOTAL BANK ALL EFTPOS}-{PM: TOTAL EFTPOS SALES}, 0.00)
Any ideas on a workaround here?
Mar 23, 2023 01:18 AM
I assume you're trying to get it to round two decimal places?
If so, try:
ROUND({PM: TOTAL BANK ALL EFTPOS}-{PM: TOTAL EFTPOS SALES}, 2)
You can also try out `ROUNDUP()` if that's what you want instead
Apr 02, 2023 07:03 PM
Thanks @TheTimeSavingCo! Worked a treat!