Uppersit of FormatFloat_Campbellsci论坛问答

Hi

Does CRBasic got a uppsit function of the FormatFlow ?

Uppersit of FormatFloat_Campbellsci论坛问答

I want to convert a string containing a numeric value into a numeric type (eg Long)

Regards

Morten

新对话如下:

The CRX000 dataloggers attempt to convert from string to numeric or numeric to string automatically, wherever possible. So if you place a string into a long variable, the conversion should be done.

The caveat to this is that automatic conversion of an alphanumeric string will stop when the first alpha character is found. If the string begins with alpha characters and SplitStr is not used to strip off those characters, then NAN will be stored.

Also, if using an operator on strings & numerics the following applies:

string <operator> float = string

float <operator> string = float

Regards,

Dana W.

新对话如下:

Hi Dana

That was too easy :-)

But it worked...
thanks

Mrten

分享到:

原文链接:,转发请注明来源!
海洋仪器网 仪器使用 Uppersit of FormatFloat_Campbellsci论坛问答
「Uppersit of FormatFloat_Campbellsci论坛问答」评论列表

发表评论