next up previous
Next: CHR_ITOC - Encode an INTEGER value as a string
Up: Routine Descriptions
Previous: CHR_ISNAM - Return whether a string is a valid name

CHR_ITOB  -  Write an INTEGER value into a binary string

Description:
Encode an INTEGER value into a binary string. The result is right-justified in the returned string. In the event of an error, ''s are written to the string.

Invocation:
CALL CHR_ITOB( IVALUE, STRING, STATUS )

Arguments:
IVALUE = INTEGER (Given)
Value to be encoded.
STRING = CHARACTER ( ) (Returned)
Binary string encoded from the given value.

Notes:
This subroutine assumes a 32-bit, twos-complement representation of an INTEGER.



next up previous
Next: CHR_ITOC - Encode an INTEGER value as a string
Up: Routine Descriptions
Previous: CHR_ISNAM - Return whether a string is a valid name



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