P. 1
COBOL - Programming Guide

COBOL - Programming Guide

|Views: 968|Likes:
Publicado pormukesh

More info:

Published by: mukesh on Jul 01, 2011
Direitos Autorais:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
See more
See less

01/08/2015

The compiler treats arithmetic statements as a succession of operations, performed
according to operator precedence, and sets up an intermediate field to contain the
results of these operations.

Intermediate results are possible in the following cases:

In an ADD or SUBTRACT statement containing multiple operands immediately
following the verb

In a COMPUTE statement specifying a series of arithmetic operations or mul-
tiple result fields

In arithmetic expressions contained in conditional statements and reference
modification specifications

In the GIVING option with multiple result fields for the ADD, SUBTRACT, MUL-
TIPLY, or DIVIDE statements

In a statement with an intrinsic function used as an operand

For a discussion on when the compiler uses fixed-point or floating-point arithmetic,
refer to “Fixed-Point versus Floating-Point Arithmetic” on page88.

You're Reading a Free Preview

Descarregar
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->