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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

issue with decimals display

(0) ShareShare
ReportReport
Posted on by 1,307

Hi,

if my price values comes as 0.93199... then its supposed to display s 0.932.

which X++ function works best to code this?

Lakshmi

I have the same question (0)
  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Lakshmi,

    Do you want to round values during display or you just want to round it when you assign the field?

    If you want to round it in x++ there is a couple of functions to do rounding dynamics-ax-live.blogspot.com/.../how-to-round-numbers.html

    If you want just change how to display number, there is ther property on EDT or form control - NoOfDecimals.

  • Lakshmi Karambakkam Profile Picture
    1,307 on at

    I am looking for function to round the value. the link no longer exists.

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Lakshmi,

    There was a dot in the end of URL. Try it one more time, it should work.

  • Blue Wang Profile Picture
    on at

    Hi  Lakshmi,

    You can use round(value,0.001),Then it will get four decimal places.

    After that through Global :: real2double (), you will be able to get the correct value.

    My example:

    3007.PNG

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Lakshmi,

    Why is it that you are looking for a function to round and why can't you go along with the standard rounding functionality that we have available in AX2012?

    Best regards,

    Ludwig

  • Sherwin Profile Picture
    220 on at

    Please check below tech link.

    docs.microsoft.com/.../xpp-math-run-time-functions

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans