05-06-2020 08:32 AM - edited 05-06-2020 08:38 AM
I want to separate a number after each thousands unit as a dot or a comma.
For example, if I have 12345678, it becomes 12,345,678 or 12.345.678
Can anyone help me with this problem?
Thanks
Solved! Go to Solution.
05-06-2020 08:50 AM - edited 05-06-2020 08:55 AM
Unfortunately, LabVIEW doesn't have a format specifier to separate groups of 3 in a numeric display. You'll have to do it with a string indicator.
I think I created a subVI to do this, but I can't find it at the moment.
I recommend voting for this idea. https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Visual-Aides-Numeric-Separators/idi-p/941273
I found my VI, but it did more than just commas. But luckily I put a note in it that told me where I got the heard of the code.
05-06-2020 09:23 AM
Thank you very much. It is what I need for my VI.
05-06-2020 09:38 AM
Here is another way to do the same thing.
05-06-2020 10:55 AM
I recommend the link I posted above. Tim's example only works with integers. If you feed it a value with a decimal fraction portion, it will round it to the nearest integer.
PS:. "Separator"
05-06-2020 10:58 AM
I don't get paid to spell. : ) That is part of why I love LabVIEW. I try but one does slip through every once in a while.