next up previous
Next: CHR_ITOH - Write a hexadecimal string from an INTEGER value
Up: Routine Descriptions
Previous: CHR_ITOB - Write an INTEGER value into a binary string

CHR_ITOC  -  Encode an INTEGER value as a string

Description:
Encode an integer value as a (decimal) character string, using as concise a format as possible, and return the number of characters used. In the event of an error, ''s will be written into to the string.

Invocation:
CALL CHR_ITOC( IVALUE, STRING, NCHAR )

Arguments:
IVALUE = INTEGER (Given)
The value to be encoded.
STRING = CHARACTER ( ) (Returned)
The string into which the integer value is encoded.
NCHAR = INTEGER (Returned)
The field width used in encoding the value.



next up previous
Next: CHR_ITOH - Write a hexadecimal string from an INTEGER value
Up: Routine Descriptions
Previous: CHR_ITOB - Write an INTEGER value into a binary string



CHR Character Handling Routines
Starlink User Note 40
A C Charles
P C T Rees
A J Chipperfield
2 August 1995
E-mail:ussc@star.rl.ac.uk