Notifications
Announcements
No record found.
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
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.
I am looking for function to round the value. the link no longer exists.
There was a dot in the end of URL. Try it one more time, it should work.
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:
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
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 660 Most Valuable Professional
André Arnaud de Cal... 549 Super User 2025 Season 2
Sohaib Cheema 307 User Group Leader