取消
显示结果 
搜索替代 
您的意思是: 

String to double conversion

已解决!
转到解答

Hello,

 

I'm trying to convert the following string to a double:

 

it=55,55

 

Does anyone have any suggestions?

 

 

Thanks,

0 项奖励
1 条消息(共 9 条)
15,520 次查看

Hi,

 

       Use Scan From String with input format "%,;%f" or use Fract/Exp String To Number with use system decimal point = FALSE if decimal point is "." or use sytem decimal point = TRUE if decimal point is ",".

 

Scan From String.png

 

Best Regards,

Luis A. Mata C.
Ing. Electrónico
Whatsapp: +58-414-1985579
BBM Pin: 2B83E99A
Thanks: Kudos
0 项奖励
2 条消息(共 9 条)
15,513 次查看

@floresma wrote:

Hello,

 

I'm trying to convert the following string to a double:

 

it=55,55

 

Does anyone have any suggestions?

 

 

Thanks,


What are you trying to convert into a double?  The whole string (it=55,55)?  By "double," do you mean "ascii codes?"

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
3 条消息(共 9 条)
15,506 次查看

Thanks for the help, however, i keep getting the following error:

 

Error 85 occurred at Scan From String (arg 1) in Untitled 3

Am I missing an element?

 

 

Thanks,

 

0 项奖励
4 条消息(共 9 条)
15,494 次查看

I'm trying to convert the number vlues into seperate double indicators.

0 项奖励
5 条消息(共 9 条)
15,485 次查看

Hi,

 

       billko read better that me, change format string to:

                                          it=%,;%f

 

Scan From String (it=55,55).png

 

Best Regards,

Luis A. Mata C.
Ing. Electrónico
Whatsapp: +58-414-1985579
BBM Pin: 2B83E99A
Thanks: Kudos
6 条消息(共 9 条)
15,480 次查看

Post your VI, that way we can see what you are doing wrong.

 

Be sure that you have any data in controls saved as the default values.

0 项奖励
7 条消息(共 9 条)
15,479 次查看
解答
接受人 floresma

Hi,

 

   Two numbers, ok.

 

   Try this:

 

Scan From String 3.png

PS: You can erase %.; if you system decimal point is ".".

Best Regards,

Luis A. Mata C.
Ing. Electrónico
Whatsapp: +58-414-1985579
BBM Pin: 2B83E99A
Thanks: Kudos
8 条消息(共 9 条)
15,475 次查看

Thanks for the help:) this worked perfectly....

 

 

Also, thanks to everyone for all your feedback...

0 项奖励
9 条消息(共 9 条)
15,468 次查看