Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Unanswered

How to show Decimal variable with .00 Included in Message

Posted on by 33
I want to show decimal Amount in Message with .00 Included even if it is a whole number.


Following are example of  
                             TotalAmount : Decimal;

                             Message(Format(TotalAmount))
 
TotalAmount is a decimal variable, I am displaying it using different amounts, such as 2323, 2323.1 and 2323.12. I want it to show 2323.00, 2323.10 and 2323.12.



Categories:
  • Mohana Yadav Profile Picture
    Mohana Yadav 50,454 Super User on at
    How to show Decimal variable with .00 Included in Message
    Use 
    Message(Format(TotalAmount, 0, '<Precision,2:2><Standard Format,2>'));

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,995 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,610 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans