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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

how to format quantity

(0) ShareShare
ReportReport
Posted on by 131
Hello community, first of all thank you very much for reading my question and taking the time.

I currently have a decimal type variable and I want to give it the following format: 0000000000000.01

Example if my variable brings the amount 1678.32 it would have to be displayed in my text type variable as follows:
00000000001678.32

currently try something like this:
pastedimage1675869008021v1.png

But I can't get the expected result, I get something like this:
'39088.0000000000000'


and it should look something like this:
0000000039088.00

Thank you for your time and I remain attentive to any kind of idea. Thank you and have a good day.


 
I have the same question (0)
  • Yael Suarez Profile Picture
    131 on at

    Hi I use this:

    PBAMonto := Format(PBATbDiarioPagos.Amount, 0, '<Precision,2:2><Filler Character,0><Integer,13><Filler Character,0><Decimals>');

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    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

    www.dynamicsuser.net/.../14

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

    Thanks.

  • Suggested answer
    Nitin Verma Profile Picture
    21,794 Moderator on at

    Hi,

    You can try something like this, I am giving you idea, you can write your own logic with the help of below methods and variables.

    length: Integer

    Amt: Text

    length := 8;

    Amt := '39088.00';

    MESSAGE('%1%2',PADSTR('',8,'0'),Amt);

    Answer is - 0000000039088.00

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,949 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,064 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 559 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans