Character Filter - Thousands Symbol
Hi!
I am not sure how to achieve the following.
I have a number. I want a Thousand Sperator. The problem is my number could range from 1 digit all the way to 10 digits.
What I want to display in my Text Object.
Number = 100.
Displayed = "100".
Number = 1000.
Displayed = "1,000".
Number = 100000.
Displayed = "100,000".
Number = 1000000.
Displayed = "1,000,000"
As you can see I want the Thousand Sperator to display ONLY if its needed. Is this possible?
I tried setting my input mask to "9,999,999,999;0;_". This does not work.
For the number = 100 I would get " , , ,100". How can I supress the spaces / unneeded Thousand Sperators? Is this possible in bartender?
My data source is from .net. I could always do this in code, but some labels do not require a Thousand Seperator. I much rather handle the formatting on the label than in code. (This way I can change the formatting of the label without having to change my code)
Thanks in advance!
-
Ah I set the datatype to number. Thanks :)
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar