LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

numbering system , to .

Solved!
Go to solution

Hello everyone,

 

i have a problem with the setting of the numbering format. In germany, the value 1.5 is written as 1,5. So my labview program recognise 1,5 instead of 1.5 I want to set in to the normal american numbering system instead of the german system.

Where can i change the setting  for it ?

Thank You

 

 

 

 

0 Kudos
Message 1 of 6
(3,269 Views)

Depends on what you mean by "recognize". Is this reading from a file? Is this for a front panel control? Is this for writing out to a file? Is this for a built application?

 

See, for example

How do I Convert a String with a Floating Point Number That Uses a Comma for the Decimal Point into...

How Can I Localize My Executable So That the Decimal Separator Is the Same on European Computers?

 

as well as all the other links from this search.

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

When you use the Scan from string function, start the format string with '%.;' this will set the decimal sign to a point.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 6
(3,239 Views)
Solution
Accepted by topic author yehchia
There's also a an option "Use localized decimal point" under Tools -> Options -> Front Panel . It's a global setting that affects the whole development environment and you'll have to restart LV after changing it.
Message 4 of 6
(3,224 Views)

All good answers above.

As smercurio mentionned, what is meant by "recognize"?  In other words, how is this localization used?  The answer to that will select the appropriate solution.

0 Kudos
Message 5 of 6
(3,211 Views)

Thank you

Message 6 of 6
(3,192 Views)