web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

how to remove decimal places ?

(0) ShareShare
ReportReport
Posted on by 387

Dear Experts,

I want to remove the decimal places from mail body report. 

2072.png

I have write the below code like..

Mail.AppendBody('<td align="right">'+FORMAT(ROUND(ABS(TotalCostValue)))+'</td>');

Mail.AppendBody('<td align="right">'+FORMAT(ROUND(ABS(Total_Expected)))+'</td>');
Mail.AppendBody('<td align="right">'+FORMAT(ROUND(ABS(GrandTot)))+'</td>');

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: how to remove decimal places ?

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

    Thanks.

  • Verified answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,207 Super User 2025 Season 2 on at
    RE: how to remove decimal places ?

    You need to add the precision to the round.

    NewNumber := ROUND(Number [, Precision] [, Direction])  

    NewNumber := ROUND(Number,1); //round the decimal to 0 based on nearest

  • navision begginers Profile Picture
    387 on at
    RE: how to remove decimal places ?

    thank you. using point no. 2 my query is resolved.

    Please help me to arrange the separator,comas for Indian currencies.  

  • Verified answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,207 Super User 2025 Season 2 on at
    RE: how to remove decimal places ?

    Take a look at the FORMAT parameter.

    docs.microsoft.com/.../format-function--code--text-

    docs.microsoft.com/.../format-property

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,308

#2
Sumit Singh Profile Picture

Sumit Singh 2,798

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,793

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans