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

Notifications

Announcements

No record found.

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
    301,075 Super User 2025 Season 2 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
    237,965 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
    237,965 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans