C# decimal separator?

后端 未结 4 2039
孤独总比滥情好
孤独总比滥情好 2020-12-10 03:20

I have a method which returns numbers like this:

public decimal GetNumber()
{
    return 250.00m;
}

Now when this value is printed to the c

4条回答
  •  [愿得一人]
    2020-12-10 03:40

    Locale-specific formatting?

    http://en.wikipedia.org/wiki/File:DecimalSeparator.svg (Green equals a comma, so if you are calling ToString() on your decimal using the culture info of any of these locations, you will see a comma).

提交回复
热议问题