I was just curious if it's possible to remove the space when the amount goes up to thousands? So instead of 1 000 kr it becomes 1000 kr. It would be neat if I woulden't have to do this everytime:
This is defined by your currency and it's culture settings. By default it'll use the number formatting defined by it's given culture, but if you want, you can provide your own formatting string template in the currencies settings. Maybe a template like {0} kr would do the trick (or it may need some specific formatting opperators, see MSDN docs for more on that https://learn.microsoft.com/en-us/dotnet/api/system.string.format?view=net-6.0)
Format space in price
Hi!
I was just curious if it's possible to remove the space when the amount goes up to thousands? So instead of
1 000 kr
it becomes1000 kr
. It would be neat if I woulden't have to do this everytime://Johannes
Hi Johannes,
This is defined by your currency and it's culture settings. By default it'll use the number formatting defined by it's given culture, but if you want, you can provide your own formatting string template in the currencies settings. Maybe a template like
{0} kr
would do the trick (or it may need some specific formatting opperators, see MSDN docs for more on that https://learn.microsoft.com/en-us/dotnet/api/system.string.format?view=net-6.0)Hi Matt!
{0:F0} kr
solved it! I didn't know could do number formatting that way!Thank you!
//Johannes
Awesome!
is working on a reply...