LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

covert string to number

Hi all

I have question please

I have string as 31233455477687643254 its 20 digit number . I want to convert this string to number and i want to displayed it as it shows

what i mean

The string is 31233455477687643254 and I want to convert it to number shown as same digit

Can it be done ?

Thanks alot
0 Kudos
Message 1 of 3
(2,065 Views)

Hi Elyan,

 

this number exceeds the range of an U64 number (which only allows 18446744073709551615 max).

It also exceeds the precision of a DBL or EXT number so you will lose some digits:

Beispiel_VI.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,056 Views)

It already is a number, right. I assume you want to convert it to a numeric datatype. There is no LabVIEW datatype that can hold this number and keep all significant digits. You need to craft your own datatype. (e.g. a cluster of two U32). Then you need to write all needed basic operations (formatting, scanning, add, multiply, etc. from scratch). 

0 Kudos
Message 3 of 3
(2,053 Views)