USGS

Isis 2 Documentation


str2int Documentation

str2int - Convert a numeric string to integer
str2int converts a numeric string supplied by a calling PDF
to a binary value.

NOTE:  str2int can only be called from within a procedure PDF

PROGRAMMER:  Kris Becker, USGS, Flagstaff

ParmDescriptionDefault
INSTR
Numeric value to convert
NONE
OUTINT
Output integer value
NONE

ADDITIONAL NOTES:

ParmDescription
INSTR
This parameter is supplied by the calling PDF and should
be passed by value. For instance, the following PDF code
sequence will demonstrate its use:

LOCAL STR    TYPE=(STRING,10)
LOCAL INT    INTEGER

LET STR = "120"
str2int INSTR=&STR OUTINT=INT

The conversion actually takes place in this call but
the returned INTEGER value is now an integer rather than
a string.
OUTINT
The converted integer value

Last updated: Jan 31 2005
File: pdfs2.html

Contact us online at the Isis Support Center: http://isisdist.wr.usgs.gov

ISIS Documentation Home Page