@val precision when extracting numbers from tables
Posted: Wed Apr 10, 2013 9:20 am
Hi - this is my first post here so apologies if it is in the wrong section or naive etc. I've used the search function already and can't find a similar post.
I want to assign a value from a cell in a a table to a control variable as part of a program in EViews 8, e.g.
!myvariable = @val(mytable(2,2))
this works in principle, but it seems to be reducing the accuracy to 6 decimal places when the number in the table is transferred to !myvariable, which is throwing subsequent calcualtions out. Is there any way to increase the accuracy (ideally to 16 decimals) or another way around this? Without the @val command I get a string assigned to scalar error.
For reference with alternative options, the !myvariable has to be used repeatedly taking different values from different cells as part of a loop, and the number has to come out of a table, and the table is the only source of the number (i.e. I can't get it from another object such as an equation).
Any help would be greatly appreciated.
JG
I want to assign a value from a cell in a a table to a control variable as part of a program in EViews 8, e.g.
!myvariable = @val(mytable(2,2))
this works in principle, but it seems to be reducing the accuracy to 6 decimal places when the number in the table is transferred to !myvariable, which is throwing subsequent calcualtions out. Is there any way to increase the accuracy (ideally to 16 decimals) or another way around this? Without the @val command I get a string assigned to scalar error.
For reference with alternative options, the !myvariable has to be used repeatedly taking different values from different cells as part of a loop, and the number has to come out of a table, and the table is the only source of the number (i.e. I can't get it from another object such as an equation).
Any help would be greatly appreciated.
JG