web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Rounding issue while calculating values

(0) ShareShare
ReportReport
Posted on by 100

I have a standard lines table with an amount field of edt AmountCur. Now based on an amount user decides I need to update the values. Suppose if the value is 20000. The updated values will be

In table level:

2301.38
1689.01
3335.33
1334.13
4002.4
4002.4
3335.33

The sum of values is 19999.98

But if i see in Sql level it is equal to 20000.

2301.380828   
1689.013408   
3335.334534   
1334.133814   
4002.401441   
4002.401441   
3335.334534   

If I want to try to add the penny difference to last line, If I write Select sum(AmountCur) from table1; 

table1.AmountCur is returning 20000.

So what is happening here, even though table level values give me a sum which is equal to 19999.98 but in reality it is treated as 20000 by the system? If that is not the case can you help how I can overcome this.

Thanks.

*This post is locked for comments

I have the same question (0)
  • Mea_ Profile Picture
    60,284 on at

    How do you check values on the table level?

  • JayVee13 Profile Picture
    100 on at

    Hi Ievgen,

    I checked using Table browser.

  • Mea_ Profile Picture
    60,284 on at

    it's not the best way to check.  Table browser is just a form and it rounds values as well. Check what you have in SQL as you do or via x++ job. If you need more decimal places change EDT to show more  to the end user.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans