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 :
Microsoft Dynamics AX (Archived)

Integer formatting

(0) ShareShare
ReportReport
Posted on by 275

Hi

I have an simpel integer, and i was wondering is it possible to format it.

int formatMyInt = 5600000;

Is it possible to format the int to 5.600.000 ?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    303,730 Super User 2026 Season 1 on at

    Hi Ashein,

    This is possible if you create a string display method (or edit) where you set this formatting. In case of an edit method you can remove all non number characters.

    Using an integer control itself is not working as an integer is a number only.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Ashein

    Could you share what you are trying to achieve.

    In form level thousand separator is available by default. Also you can change the separator to comma(,) or Dot (.) in it's respective Extended Data Type "thousandSeperator" property

  • Ashein Profile Picture
    275 on at

    So it is only possible to format my integer if it is a string ? using a strEdit?

  • Ashein Profile Picture
    275 on at

    I have a table where i import alot of data (Integers) but the numbers are in the millions. And at the moment the number 5600000, 5999999, 4300000. I would like to make them readable, through form where i use intEdits.

  • Community Member Profile Picture
    on at

    Ashein

    yes, As I said earlier, the thousands separator is controlled by the EDT of that field. You can mention it in the EDT property.

    Thousand separator won't be available for Integer type. Why the field is Integer? not Real?

  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    Use int edit controls and leave number formatting to Windows. Users from different countries or just different preference will get different formats, depending on their setup in Windows. Hard-coding a particular format as string would be wrong.

    If you want to see different format by yourself, change your number format in Regional Settings in Windows.

  • Ashein Profile Picture
    275 on at

    Because the numbers i receive are never with decimals, they are only whole numbers Manish. Thats why they are integers.

    But it makes sense not to edit them as strings as you said Martin.

    So just to be clear there are no way to format integers, to make them more readable ?

  • Verified answer
    Community Member Profile Picture
    on at

    You may convert them to real type, to get the separators by default. You can choose not to show the decimals if required.

  • Verified answer
    Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    Unfortunately it seems that IntEdit doesn't respect the format, but you could use RealEdit with NoOfDecimals = 0.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans