Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Please explain the Round Function

(1) ShareShare
ReportReport
Posted on by

How does the found function work in Ax

 num = round(num,0.01);

What is the function of the second argument

*This post is locked for comments

  • brianmaric Profile Picture
    brianmaric on at
    RE: Please explain the Round Function

    Thank You!

  • Verified answer
    BrandonSA Profile Picture
    BrandonSA 1,669 on at
    RE: Please explain the Round Function

    Hi

    You can check this for more details:

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

    The second function is basically a multiplier of the number you want to round off to.

    So, if you want to round 11 off to the nearest multiple of 5 (which would be 10), you'd use round(11, 5)

    If you want to round 51 to the nearest multiple of 100 (which would be 100), you'd use round(51, 100)

    if you want to round 9.8 to the nearest whole number, or to the nearest multiple of 1 (which would be 10), you'd use round(9.8, 1)

    So basically, if you want to round off to a certain number of decimal places you'd use round(myNum, 0.00001) where 0.00001 includes the number of decimals you want to round off to

    Round also doesn't only round up, it rounds down if down is the nearest number to round to

    Hope this helps

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,436 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans