Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Calculated Field is not rounding off the values

Posted on by 25

Hi,

I have Calculated field with 4 precision of decimal Data Type. Below is the formula (A & B are Currency fields with same 4 precision)

(A-B) / A) * 100

((5.8590 - 4.4600)/5.8590)*100 = 23.877795

When I am setting the value in JavaScript (Manual calculation), result automatically rounding Off

JavaScript result = 23.8778

BUT 

Calculated field result = 23.8777

Expected result should be 23.8778 in calculated field

Any Idea why calculated field is not rounding off the values properly?

Thanks,

Praveen

*This post is locked for comments

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Calculated Field is not rounding off the values

    Hi Praveen,

    I think this is expected behavior when you set calculated field with 4 precision of decimal datatype. Try to set 2  precision.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans