LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Numerical indicator with spaces between each group of 3 digits AFTER the decimal separator.

I would like to display the numbers in a numerical indicator with a space between each group of 3 digits AFTER the decimal separator. How to do that?
0 Kudos
Message 1 of 6
(3,124 Views)

You need to use a plain string indicator and do your own formatting of the numeric data, shouldn't be too hard. ;).

 

You can also make an Xcontrol.

0 Kudos
Message 2 of 6
(3,116 Views)

I don't think that it is possible to display a number with that format in a numeric indicator.

 

You could convert the number to a string indicator:

1.) Find the number of decimal places required

2.) Convert the number to a fractional string with the required number of digits

3.) Use the match pattern and string subset functions to build your string

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
Message 3 of 6
(3,113 Views)
Thanks. Problem solved.
0 Kudos
Message 4 of 6
(3,103 Views)
Something like that for example...But you can modify this VI to determine automatically how many decimals are necessary after the decimal separator.
0 Kudos
Message 5 of 6
(3,090 Views)
Oups, be careful : my VI doesn't work so much in some cases ! But anyway, if you have found a solution by yourself that's OK...
0 Kudos
Message 6 of 6
(3,087 Views)