COBOL - USAGE Clause - COMPUTATIONAL-1 or COMP-1 (floating-point)



Desenvolvido por DORNELLES Carlos Alberto - Analista de Sistemas - Brasília DF. - cad_cobol@hotmail.com

COBOL - USAGE Clause - COMPUTATIONAL-1 or COMP-1 (floating-point)

The COMPUTATIONAL-1 or COMP-1 phrase is specified for internal floating-point items (single precision).

COMP-1 items are 4 bytes long.

The sign is contained in the first bit of the leftmost byte and the exponent is contained in the next 8 bits.

The last 23 bits contain the mantissa.

For conditional expressions, the class condition cannot be used for COMP-1 or COMPUTATIONAL-1 internal floating-point data items.



© Copyright IBM.