[Gretl-users] Tramo script
Allin Cottrell
cottrell at wfu.edu
Sun Feb 25 15:18:04 EST 2007
On Wed, 14 Feb 2007, Ignacio Diaz-Emparanza wrote:
> I finally rewrote my Tramo-linearization script to take into
> account some of the new features introduced by Allin, and trying
> to make the script usable in both, Linux and Windows. You may
> find it in the attached files.
Thanks!
> There are two things that I would add to the gretl "wishes list"
> (not urgent, Allin, if you think that it is not the time now)
> with respect to this type of script:
>
> 1- If gretl automatically produces an "environment variable"
> indicating whether it is being executed in Linux/Windows, we
> could go without the parameter "linux=0/1" used in this script.
OK, we now have this. There is a built-in constant, "WIN32" which
has value 1 when gretl is running on MS Windows, otherwise 0.
So you can do. e.g.
if WIN32
# do something
else
# do something else
end if
> 2- Another problem with the decimal point: as Tramo uses points,
> this script only works well if the user unselect "use locale
> settings as decimal points" in preferences. May be posible to
> have a "set" variable to force the use of decimal points inside
> a function?
That is a little trickier, but we'll get that before long.
Allin.
More information about the Gretl-users
mailing list