AIPS HELP file for CHAR in 31DEC24
As of Thu Oct 10 18:11:48 2024
CHAR: Function verb to convert a number to a string.
INPUTS
NO adverbs. Instead, CHAR takes 1 argument as
CHAR (value)
where value is any numeric scalar POPS adverb or
constant.
HELP SECTION
CHAR
Type: Verb (function: leaves results on the stack)
Use: To convert a scalar numeric quantity to a string requires
1 immediate argument as
CHAR (value)
where value is the adverb or constant to be converted.
The basic format used is F9.4. However, this format will
be revised to encompass small and large numbers, even
going to exponential notation if required. No more than
9 characters will be used. Leading blanks and trailing
zeros are suppressed. Syntax example:
SUBSTR (INNAME, 6, 12) = CHAR (I)
Numeric examples:
I = 3.0 CHAR (I) = '3'
4.00003 '4'
5.0678 '5.0678'
0.000000067 '6.700E-08'
12345678.0 '12345678'
0.12e16 '1.200E+15'
0.23e-8 '2.300E-09'
Adverbs: none.
EXPLAIN SECTION