Compiler Library/XL Reference Manual (32650-90029)

3- 3
than the smallest
representable value
and an illegal
character was
detected.
-4 = The resulting number
is less than the
smallest representable
value of datatype.
See Chapter 1 for
details on
representable values.
W = Upon exit, the number
of string characters
used to compute the
result (see Comment
5).
Results: See "Parameters (Output)" above.
HP FORTRAN 77/XL: Use the $ALIAS directive to call EXTIN' ; use
the system intrinsic statement to call
HPEXTIN.
Errors: See "Parameters (Output)" above.
Comments
1. The external form of the input is a string of ASCII digits that
can include integer, fraction, and exponent subfields:
Integer Fraction Exponent
field field field
| | |
V V V
|<---------->| |<----------->| |<---------->|
+n...n . n...n E+ee
^
|
Decimal point
The exponent field input can be any of these forms:
+e +ee Ee Eee De Dee
-e -ee E+e E+ee D+e D+ee
+eee -eee E-e E-ee D-e D-ee
where e is an exponent value digit.
2. The scale parameter has no effect if the input string includes an
exponent field. Otherwise, a scale of
n
sets the result to the
input string value * 10-n . For example,
STRING Array scale RESULT
------------ ----- ------
4398.76 3 4.39876
543.21 -3 543210.
3. The type of the result is independent of the input string format.
For example, the input 4398.76 can be converted to integer form.
The conversion rules are stated in Table 3-1.