|
valuestr
- convert value to string
| Syntax: |
string
valuestr(float x, string
format) |
| Description: |
Convert
each element of x from a float to a string.
- The format
parameter can be used to specify a C or FORTRAN format string.
|
| Examples: |
format |
valuestr(pi,
format) |
"%.3f"
"F5.2" |
"3.14159"
"3.14" |
| See
also: |
sort |
version
- version of Gsharp
| Syntax: |
string
version() |
| Description: |
Returns
the version of the Gsharp that is executing.
- This value
can be used in GSL scripts to take advantage of new features or
to workaround old bugs.
- The value
is returned as a string. It can be converted to a number using
strvalue() e.g. ver = strvlaue(version());
- The integer
and first decimal place represent the version of Gsharp. The second
and third decimal places represent the build number e.g. "3.315"
is the version number of Gsharp 3.3, build 15. If a bug is found
in Gsharp it is patched and given a number. A new executable can
then be downloaded from the AVS web-site. Build 15 will include
all patch numbered 1 to 15. See: http://www.avsuk.com/support/tm/download
|
| Example: |
if (strvalue(version)>3.3) then
printf("line %d: %6.3g", 1:10, values);
else
for i = 1 to 10
printf("line %d: %6.3g", i , values[i]);
endfor
endif
|
| See
also: |
batch,
appseat, webedition |
|