How to convert string to numeric?

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

colin.Fu
Posts: 7
Joined: Wed Jun 04, 2014 6:38 pm

How to convert string to numeric?

Postby colin.Fu » Wed Jun 18, 2014 8:40 pm

Hey everyone!

I am using @str(.) to convert a number to a string.
But how can I do the opposite. To convert a numeric value string to a number?

since I am using @abs(.) to compute the absolute value of a number, I am using myTable(1,1)(table myTable) like to transfer the value, but the error message shows that a string is not accepted in the function.

Any suggestions? Thanks!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: How to convert string to numeric?

Postby EViews Gareth » Wed Jun 18, 2014 11:15 pm

@val

colin.Fu
Posts: 7
Joined: Wed Jun 04, 2014 6:38 pm

Re: How to convert string to numeric?

Postby colin.Fu » Sun Jun 22, 2014 5:51 pm

@val
Thanks! :D


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests