Sarath
5th August 2016, 09:50
A new blog entry has been added:
String to Long conversion
Hi,
Could I know how to convert the string to Long ?
Regards,
Sarath Kumar Namburi.
bhushanchanda
5th August 2016, 14:13
Hi,
To get answers, please post the questions in the related forums and not as a blog. Moved to correct forum -> Tools Dev.
For converting string to long, use val() function
e.g.
string xyz(5)
long abc
xyz = "100"
abc = val(xyz)
bdittmar
5th August 2016, 14:17
Hello,
str$ / val converts
str$()
Syntax:
function string str$ (long or double number)
Description
This function converts an integer or floating point value to its textual representation.
Arguments
long or double number
----------------------
val()
Syntax:
function double val (string expr)
Description
This function converts the supplied textual representation to the represented floating point value or to the floating point value corresponding to the represented integer value.
Arguments
string expr
Regards
manish_patel
5th August 2016, 15:09
For performance reason, if string var does not contain double and float value, you should use lval() instead of val().