LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Format Specifier - Hash/Number Sign "#" effect

Solved!
Go to solution

Dear community!

 

I am trying to construct a format specifier string and wanted to understand the Format Specifier Syntax (as described here in the LabVIEW manual). However, I have become confused by the description for the effect of the Hash sign (#), which is given as:

 

When you use a formatting function, this modifier removes trailing zeros. If the number has no fractional part, this modifier also removes the description part.

 

What does "removes the description part" mean in this context?

 

There is no other mention of "description" in the document, except in the table header. My native language is german, but reading the german manual also did not help in understanding the function. The german manual sates that (my back-translation) "When you use a formatting function, this modifier removes trailing zeroes from the figured following the decimal point. If the number has no figures to the right of the decimal point, the figures before* the decimal point will be removed". (* meaning: to the left of ...)

 

I did some tests and the actual function of the "#" formar symbol seems to be to remove trailing zeroes up to the decimal point and, if no figures remain, remove the decimal point (or other relevant decimal specifier) as well, but I want to make sure I am not breaking anything. Either way, it seems to me that the german translation is a bit off target.

 

Thanks in advance for your help!

0 Kudos
Message 1 of 3
(2,330 Views)
Solution
Accepted by LLindenbauer

@LLindenbauer wrote:

When you use a formatting function, this modifier removes trailing zeros. If the number has no fractional part, this modifier also removes the description part.

 

What does "removes the description part" mean in this context?


I think that is a bug in the documentation.  It should be "removes the decimal point."

 

EDIT: It has been there since at least LabVIEW 8.2.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(2,306 Views)

Hi LL,

 

I guess this "description part" is the decimal point (or comma in Germany): when there is no fractional part then you don't need to display the decimal separator char…

 

You should post over at LabVIEW Idea or try to create a bug report with NI to improve the LabVIEW help documents.

(I hope they will listen, but on the other hand there isn't any LabVIEW2019 online help anymore because of "too much similarity to older LabVIEW online help"…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 3
(2,303 Views)