Yes, the compiler generates additional code to ensure that a -ve zero cannot be 
the result of anything in COBOL. This was discussed fairly recently here. The 
machine instructions obey the rules of algebra, COBOL doesn't as they apply to 
zero. Minus five times zero is zero, and always positive (in a signed field, 
irrelevant for an unsigned field).

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to