Re: PL/I Division (was Constant Identifiers)

2020-09-09 Thread Seymour J Metz
To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: PL/I Division (was Constant Identifiers) From: "Joe Monk" Sent: Monday, September 07, 2020 1:05 PM > "No it isn't. 4/3 yields 1.33... to 15 digits, > and is of precision (15,14)" > > Depends on RULES(IBM) or RULES(ANS).

Re: PL/I Division (was Constant Identifiers)

2020-09-09 Thread Robin Vowels
From: "Joe Monk" Sent: Monday, September 07, 2020 1:05 PM "No it isn't. 4/3 yields 1.33... to 15 digits, and is of precision (15,14)" Depends on RULES(IBM) or RULES(ANS). If its RULES(IBM) it will never be integer division. If its RULES(ANS) and the operands are unscaled, then it will

Re: PL/I division (was: Constant Identifiers)

2020-09-06 Thread Seymour J Metz
Yeah, I misread the table. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Robin Vowels Sent: Monday, September 7, 2020 1:34 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: PL/I division

Re: PL/I division (was: Constant Identifiers)

2020-09-06 Thread Robin Vowels
On 2020-09-07 14:56, Seymour J Metz wrote: No: see https://www.ibm.com/support/knowledgecenter/SSY2V3_5.3.0 /lr/resarithoprt.html#resarithoprt__fig16, Tables 3 and 4. For 4/3, the scale factor is 1, not 0. 4 is FIXED DECIMAL (1,0). 3 IS fixed decimal (1,0). 4/3 is fixed decimal (15,14).* See