LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in converting string?

I think that in Labview 5.01, the VI 'convert from exponential" is
expected to convert strings with 0-9, E, e and . caracters into numbers.

But it doesn't. You have to put commas (,) in your strings.

i.e:
3.5E-6 will be converted into 3
3,5E-6 will be converted into 3,6E-6 (rightly)

Does anyone already noticed that?
0 Kudos
Message 1 of 3
(5,110 Views)
See labview online help under 'VI Localization'>'Period and Comma
Decimal Separators'. I haven't really played with the setting that this
help topic discusses, however, it may be a good starting point for
discovering what is going on.

ej

In article <3794AA1E.BE42AEA7@lure.u-psud.fr>,
Rommeluere wrote:
>
> I think that in Labview 5.01, the VI 'convert from exponential" is
> expected to convert strings with 0-9, E, e and . caracters into
numbers.
>
> But it doesn't. You have to put commas (,) in your strings.
>
> i.e:
> 3.5E-6 will be converted into 3
> 3,5E-6 will be converted into 3,6E-6 (rightly)
>
> Does anyone already noticed that?
>
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 2 of 3
(5,110 Views)
> I think that in Labview 5.01, the VI 'convert from exponential" is
> expected to convert strings with 0-9, E, e and . caracters into numbers.
>
> But it doesn't. You have to put commas (,) in your strings.
>
> i.e:
> 3.5E-6 will be converted into 3
> 3,5E-6 will be converted into 3,6E-6 (rightly)
>

This probably has to do with the locale settings. LV supports
both local and US decimal settings depending on various settings.

I believe there are previous postings that cover this in great
detail, and it should be in the manual too.

Greg McKaskle
0 Kudos
Message 3 of 3
(5,110 Views)