Format integer number with . as thousand separator and no decimals

Flo

I want to print a number with no decimals and a . as the thousand separator. All the example I could Google have a , as a thousands separator.

I've set the CultureInfo to "nl-NL"

So 3200 should be shown as 3.200

I tried:

"3200".ToString("N2")  
"3200".ToString("#.###")
"3200".ToString("0:0")
Daniel Stackenland

If you use "nl-NL" then N0 should do it, try this:

    decimal num = 3200;
    num.ToString("N0");

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Format number with space as thousand separator

From Dev

Format number with space as thousand separator

From Dev

String Number format with "/" for thousand separator

From Dev

How to format number with "." as thousand separator, and "," as decimal separator?

From Dev

Set standard number format with thousand separator, 2 decimals and minus sign for negative numbers using VBA?

From Dev

ionic +number format trouble based on the thousand separator

From Dev

regex for multiple formats decimals and thousand separator

From Dev

Format number in R with both comma thousands separator and specified decimals

From Dev

d3.format thousand separator on variables?

From Dev

Format a bootstrap table with dollar sign and thousand separator

From Dev

ExtJS 6 thousand separator in number field

From Dev

Is it possible to print a number formatted with thousand separator in Rust?

From Dev

Adding thousand separator while printing a number

From Dev

Remove decimals/Format a number

From Dev

Add Thousand separator to any number even if it contains special characters

From Dev

remove thousand separator of number in CSV (batch command, using JREPL)

From Dev

Add Thousand separator to any number even if it contains special characters

From Dev

How to format a number with spanish thousand grouping in python?

From Dev

How to format a number with spanish thousand grouping in python?

From Dev

Thousand Separator in DBGrid

From Dev

Devexpress XRtableCell thousand separator?

From Dev

Thousand separator in awk

From Dev

Python regex for number with or without decimals using a dot or comma as separator?

From Dev

String.Format - integer, thousands separator, no decimal

From Dev

format a number with dots and decimals in C#

From Dev

format float with minimum and maximum number of decimals

From Dev

How to format a number in Java and also keep the decimals?

From Dev

format a number with dots and decimals in C#

From Dev

How to format a number in Java and also keep the decimals?

Related Related

  1. 1

    Format number with space as thousand separator

  2. 2

    Format number with space as thousand separator

  3. 3

    String Number format with "/" for thousand separator

  4. 4

    How to format number with "." as thousand separator, and "," as decimal separator?

  5. 5

    Set standard number format with thousand separator, 2 decimals and minus sign for negative numbers using VBA?

  6. 6

    ionic +number format trouble based on the thousand separator

  7. 7

    regex for multiple formats decimals and thousand separator

  8. 8

    Format number in R with both comma thousands separator and specified decimals

  9. 9

    d3.format thousand separator on variables?

  10. 10

    Format a bootstrap table with dollar sign and thousand separator

  11. 11

    ExtJS 6 thousand separator in number field

  12. 12

    Is it possible to print a number formatted with thousand separator in Rust?

  13. 13

    Adding thousand separator while printing a number

  14. 14

    Remove decimals/Format a number

  15. 15

    Add Thousand separator to any number even if it contains special characters

  16. 16

    remove thousand separator of number in CSV (batch command, using JREPL)

  17. 17

    Add Thousand separator to any number even if it contains special characters

  18. 18

    How to format a number with spanish thousand grouping in python?

  19. 19

    How to format a number with spanish thousand grouping in python?

  20. 20

    Thousand Separator in DBGrid

  21. 21

    Devexpress XRtableCell thousand separator?

  22. 22

    Thousand separator in awk

  23. 23

    Python regex for number with or without decimals using a dot or comma as separator?

  24. 24

    String.Format - integer, thousands separator, no decimal

  25. 25

    format a number with dots and decimals in C#

  26. 26

    format float with minimum and maximum number of decimals

  27. 27

    How to format a number in Java and also keep the decimals?

  28. 28

    format a number with dots and decimals in C#

  29. 29

    How to format a number in Java and also keep the decimals?

HotTag

Archive