From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

point and comma decimal separated values

Solved!
Go to solution

Hi,

 

I'm having difficulties getting the right values when converting from string to decimal floating point...

I am recording my annotations (string values) in a BDF+ file format and sometimes the recording device is a Dutch one, writing decimal separated value wit a comma like this: 5,678    but sometimes they record in the US and then i get 5.678

 

Now i want to convert my string values to a decimal floating point (single) is there a way, that the converter accepts both values and allways converts them using the dutch annotation with a comma?

 

Best regards,

Thijs

 

 

0 Kudos
Message 1 of 5
(2,630 Views)
Solution
Accepted by topic author ThijsBoeree

Solved it!!

 

Maybe there's a better way?

 

Anyone?

 

0 Kudos
Message 2 of 5
(2,623 Views)

Hi,

 

Maybe you can use this link.

http://digital.ni.com/public.nsf/allkb/4B259A9CF98AD4628625697E00548EA0?OpenDocument

 

Regards,

Hossein

 

0 Kudos
Message 3 of 5
(2,600 Views)

It was an old solution for LV 6.0

0 Kudos
Message 4 of 5
(2,593 Views)

Hi,

Sorry about that. I found some info and an example (LabVIEW 2011) which is attached in this feedback. 

http://digital.ni.com/public.nsf/allkb/894CF5FE064971BF8625758400014993?OpenDocument

 

Hope this helps!

Regards,

 

Hossein

 

0 Kudos
Message 5 of 5
(2,572 Views)