in model want format output of double. i'm trying output number this:
100000000 100.000.000 (simply dot separator)
but using (currency format)
[displayformat(dataformatstring = "{0:c}")]
result => 424.232.344 kr
i currency symbol (depending on culture, in case "kr") , don't want that. want dot separator without currency.
any suggestions?
because "c" means currency in format specifier , uses currencysymbol
of currentculture
setting.
you can use the "n"
format specifier instead.
[displayformat(dataformatstring = "{0:n0}")]
based on comment, looks currentculture
using white space numbergroupseparator
uses .
currencygroupseparator
.
in such case, can set it's numbergroupseparator
.
, fine.
read: is there way of setting culture whole application? current threads , new threads?
Comments
Post a Comment