LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

help to change string in number

I've a string " 1.001" and I want to change it in number but i take only 1.0. I had to do the median and I can't Please help
0 Kudos
Message 1 of 5
(2,999 Views)
Razmocket-stagiaire schrieb:
> I've a string " 1.001" and I want to change it in number but i take
> only 1.0. I had to do the median and I can't Please help

Hi,

try following format string to extract the number: %.;%f


Henrik
0 Kudos
Message 2 of 5
(2,999 Views)
Try this vi.
You must change the precision of your number indicator. you must set 3 for
the example you give.

--
Jerome LANGE
Strasbourg
andromed@club-internet.fr


"Razmocket-stagiaire" a ?crit dans le message news:
5065000000080000008F480000-1019262487000@exchange.ni.com...
> I've a string " 1.001" and I want to change it in number but i take
> only 1.0. I had to do the median and I can't Please help



[Attachment 1.vi, see below]
0 Kudos
Message 3 of 5
(2,999 Views)
> I've a string " 1.001" and I want to change it in number but i take
> only 1.0. I had to do the median and I can't Please help

The VI file that you attached is empty (0 bytes) ??

Regards,

Lennie De Villiers

SYSTEMS DEVELOPER & SOFTWARE CONSULTANT
Tel: +27 82 4455949 Fax: +27 82 131 4455949
Email: ddevilliers@lando.co.za
0 Kudos
Message 4 of 5
(2,999 Views)

Hi Razmocket,

 

That's the same for me I can't open your VI.

 

So, which function do you use to convert from string to number ? Decimal string to number ?

 

Thanks,

 

MathieuT

NIF AE

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