LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Format and Append

Regarding the format and append VI, what does this %.;%f HZ; means? I saw it in most of the driver's VI. Please enlighten me if you know the meaning. Thanks

Message Edited by cheyne on 03-20-2006 08:53 PM

0 Kudos
Message 1 of 4
(2,809 Views)

the %.; switches off the localized decimal separator, so it is always "." (and not "," like on some european computers.)

the %f formats a floating point number and the " HZ" outpust the string "<space>HZ".

Thus if the input is a DBL 5.0 , the formatted output string would be "5.000000 HZ" everywhere. (Without the %.; at the beginning, the output would be "5,000000 HZ" e.g. In Germany.)

Check the online help, especially the page labeled "Format Specifiers Syntax Elements". 🙂

0 Kudos
Message 2 of 4
(2,802 Views)

Hi, Thanks for answering my question,

I have tried to take out the %.; but the output seems to be the same and nothing is change. So does it matter if I don put the %.;?

0 Kudos
Message 3 of 4
(2,795 Views)
If you are in the US, you can leave it out.
 
However, if you ever plan to give your program to someone overseas, it might be safer to leave it in. It does not hurt anything!
0 Kudos
Message 4 of 4
(2,791 Views)