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,
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
Please check below tech link.
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
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:
Hi Lakshmi,
There was a dot in the end of URL. Try it one more time, it should work.
I am looking for function to round the value. the link no longer exists.
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.
André Arnaud de Cal...
292,494
Super User 2025 Season 1
Martin Dráb
231,305
Most Valuable Professional
nmaenpaa
101,156